]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs generation: export two new variables to postinst scriptlets
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 18 Sep 2012 15:47:59 +0000 (18:47 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 12:30:33 +0000 (12:30 +0000)
In order for the postinst scriptlets to be able to run once we need to
export the location of the intercept scripts and also the location of
native sysrootfs. The gdk-pixbuf binaries will need the latter because
in order to generate the loaders.cache it will need to scan some shared
libraries that must be native. Even though the output is a text file.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package_rpm.bbclass
meta/classes/rootfs_deb.bbclass
meta/classes/rootfs_ipk.bbclass

index 200a941177b5a426bfd33c673632132cc64e20ee..293c52c629f47b06f3a11f6bee33455ba74da44f 100644 (file)
@@ -475,6 +475,8 @@ export D="${target_rootfs}"
 export OFFLINE_ROOT="\$D"
 export IPKG_OFFLINE_ROOT="\$D"
 export OPKG_OFFLINE_ROOT="\$D"
+export INTERCEPT_DIR="${WORKDIR}/intercept_scripts"
+export NATIVE_ROOT=${STAGING_DIR_NATIVE}
 
 \$2 \$1/\$3 \$4
 if [ \$? -ne 0 ]; then
index 881fdbd9803f2d276b9b7437b247ae66e07b5003..955382f0458a97ceb6343918a5e339bdec687a75 100644 (file)
@@ -48,6 +48,8 @@ fakeroot rootfs_deb_do_rootfs () {
        export OFFLINE_ROOT=${IMAGE_ROOTFS}
        export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
        export OPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
+       export INTERCEPT_DIR=${WORKDIR}/intercept_scripts
+       export NATIVE_ROOT=${STAGING_DIR_NATIVE}
 
        # Attempt to run preinsts
        # Mark packages with preinst failures as unpacked
index fc69b7edf4d51775630b1b1ebc982fc9fc89676d..8766d2418197ccf23f0f4b4988ecfd72cf5b1a52 100644 (file)
@@ -69,6 +69,8 @@ fakeroot rootfs_ipk_do_rootfs () {
        export OFFLINE_ROOT=${IMAGE_ROOTFS}
        export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
        export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT}
+       export INTERCEPT_DIR=${WORKDIR}/intercept_scripts
+       export NATIVE_ROOT=${STAGING_DIR_NATIVE}
 
        package_install_internal_ipk