summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-01-30 12:56:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 23:59:37 +0000
commitb94f9ccd05a339a5e3e8ec4c7bd8c727ca575871 (patch)
tree83d59d1829f85fbc3ea176f2dffa4badc1c580b0 /meta/classes/rootfs_ipk.bbclass
parentf23e67f172c4e5d39b91edd3c91a55bfcf346192 (diff)
downloadpoky-b94f9ccd05a339a5e3e8ec4c7bd8c727ca575871.tar.gz
rootfs_ipk/package_ipk.bbclass: Move func from rootfs_ipk to package_ipk
package_ipk.bbclass: Added new function package_install_internal_ipk() to install a list of ipk packages to a specified root directory, with the specified package architecutre information. rootfs_ipk.bbclass: Used the above new functions to install rootfs. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r--meta/classes/rootfs_ipk.bbclass25
1 files changed, 9 insertions, 16 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 07c114e3ab..5727d1502b 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -29,26 +29,19 @@ fakeroot rootfs_ipk_do_rootfs () {
29 ${OPKG_PREPROCESS_COMMANDS} 29 ${OPKG_PREPROCESS_COMMANDS}
30 30
31 mkdir -p ${T}/ 31 mkdir -p ${T}/
32 mkdir -p ${IMAGE_ROOTFS}${opkglibdir}
33 32
34 opkg-cl ${IPKG_ARGS} update 33 #install
34 export INSTALL_PACKAGES_ATTEMPTONLY_IPK="${PACKAGE_INSTALL_ATTEMPTONLY}"
35 export INSTALL_PACKAGES_LINGUAS_IPK="${LINGUAS_INSTALL}"
36 export INSTALL_TASK_IPK="rootfs"
35 37
36 # Uclibc builds don't provide this stuff... 38 export INSTALL_ROOTFS_IPK="${IMAGE_ROOTFS}"
37 if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then 39 export INSTALL_CONF_IPK="${IPKGCONF_TARGET}"
38 if [ ! -z "${LINGUAS_INSTALL}" ]; then 40 export INSTALL_PACKAGES_NORMAL_IPK="${PACKAGE_INSTALL}"
39 for i in ${LINGUAS_INSTALL}; do
40 opkg-cl ${IPKG_ARGS} install $i
41 done
42 fi
43 fi
44 if [ ! -z "${PACKAGE_INSTALL}" ]; then
45 opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL}
46 fi
47 41
48 if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then 42 package_install_internal_ipk
49 opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL_ATTEMPTONLY} > "${WORKDIR}/temp/log.do_rootfs_attemptonly.${PID}" || true
50 fi
51 43
44 #post install
52 export D=${IMAGE_ROOTFS} 45 export D=${IMAGE_ROOTFS}
53 export OFFLINE_ROOT=${IMAGE_ROOTFS} 46 export OFFLINE_ROOT=${IMAGE_ROOTFS}
54 export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} 47 export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}