diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-01-30 15:55:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:59:38 +0000 |
commit | 63e220c1e8e4bf94105372156cb1ef7a6d652682 (patch) | |
tree | 6ff1c9d0bed83a53a398acb434c143c9b84019ff | |
parent | 5571753a5d04560eff40cd93ec8b284b5481215f (diff) | |
download | openembedded-core-63e220c1e8e4bf94105372156cb1ef7a6d652682.tar.gz openembedded-core-63e220c1e8e4bf94105372156cb1ef7a6d652682.tar.bz2 openembedded-core-63e220c1e8e4bf94105372156cb1ef7a6d652682.zip |
populate_sdk_ipk.bbclass: Added ipk support in populate_sdk task.
This is a preparation commit for adding ipk support in populate_sdk
task.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
-rw-r--r-- | meta/classes/populate_sdk_ipk.bbclass | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ipk.bbclass b/meta/classes/populate_sdk_ipk.bbclass new file mode 100644 index 0000000000..79259f80d6 --- /dev/null +++ b/meta/classes/populate_sdk_ipk.bbclass @@ -0,0 +1,44 @@ +do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" +do_populate_sdk[recrdeptask] += "do_package_write_ipk" + +fakeroot populate_sdk_ipk() { + + rm -f ${IPKGCONF_TARGET} + touch ${IPKGCONF_TARGET} + rm -f ${IPKGCONF_SDK} + touch ${IPKGCONF_SDK} + + package_update_index_ipk + package_generate_ipkg_conf + + export INSTALL_PACKAGES_ATTEMPTONLY_IPK="" + export INSTALL_PACKAGES_LINGUAS_IPK="" + export INSTALL_TASK_IPK="populate_sdk" + + #install target + export INSTALL_ROOTFS_IPK="${SDK_OUTPUT}/${SDKTARGETSYSROOT}" + export INSTALL_CONF_IPK="${IPKGCONF_TARGET}" + export INSTALL_PACKAGES_NORMAL_IPK="${TOOLCHAIN_TARGET_TASK}" + + package_install_internal_ipk + + #install host + export INSTALL_ROOTFS_IPK="${SDK_OUTPUT}" + export INSTALL_CONF_IPK="${IPKGCONF_SDK}" + export INSTALL_PACKAGES_NORMAL_IPK="${TOOLCHAIN_HOST_TASK}" + + package_install_internal_ipk + + #post clean up + install -d ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir} + install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir}/ + + install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir} + install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}/ + + install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg + mv ${SDK_OUTPUT}/var/lib/opkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg/ + rm -Rf ${SDK_OUTPUT}/var + + populate_sdk_log_check populate_sdk +} |