[oe-commits] Richard Purdie : populate_sdk_ipk.bbclass: Ensure the correct environment is setup for postinstalls

git at git.openembedded.org git at git.openembedded.org
Wed Jan 4 14:21:38 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: c5e6a533eab2f5af4a52d22f8efe5b49b77cd26c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c5e6a533eab2f5af4a52d22f8efe5b49b77cd26c

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Jan  4 12:17:19 2012 +0000

populate_sdk_ipk.bbclass: Ensure the correct environment is setup for postinstalls

Without this, various postinstalls get run with incorrect environments
leading to various failures when building the toolchains.

This adds some duplication and some variables we'd be better off
removing. It does unbreak the SDK ipk code for now though. This needs
revisiting.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/populate_sdk_ipk.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta/classes/populate_sdk_ipk.bbclass b/meta/classes/populate_sdk_ipk.bbclass
index 8a0c268..c256c69 100644
--- a/meta/classes/populate_sdk_ipk.bbclass
+++ b/meta/classes/populate_sdk_ipk.bbclass
@@ -20,6 +20,11 @@ populate_sdk_ipk() {
 	export INSTALL_CONF_IPK="${IPKGCONF_TARGET}"
 	export INSTALL_PACKAGES_IPK="${TOOLCHAIN_TARGET_TASK}"
 
+	export D=${INSTALL_ROOTFS_IPK}
+	export OFFLINE_ROOT=${INSTALL_ROOTFS_IPK}
+	export IPKG_OFFLINE_ROOT=${INSTALL_ROOTFS_IPK}
+	export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT}
+
 	package_install_internal_ipk
 
 	#install host





More information about the Openembedded-commits mailing list