]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ipk.bbclass: Ensure the correct environment is setup for postinstalls
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jan 2012 12:17:19 +0000 (12:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jan 2012 14:13:41 +0000 (14:13 +0000)
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@linuxfoundation.org>
meta/classes/populate_sdk_ipk.bbclass

index 8a0c268cce5c2bbbf507dc3dbb83f0f8daab807d..c256c69d48452839a2d733407395f2663caabbfd 100644 (file)
@@ -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