summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-02-25 17:31:50 -0600
committerMark Hatle <mark.hatle@windriver.com>2011-02-25 17:31:50 -0600
commit08c8f7bb7375a6f51c12ee5e7808e38e914d5413 (patch)
tree58a72471bf8193d50d1fa7f0789fad60308ba60e /meta/classes/rootfs_rpm.bbclass
parenta157aab8f620459bda3f99ea1bc13d2453de8982 (diff)
downloadpoky-08c8f7bb7375a6f51c12ee5e7808e38e914d5413.tar.gz
rootfs_rpm: Fix rootfs generation using RPM packages
[BUG #756] Fix bug #756. The rootfs contains a control file /etc/rpm/platform that specifies the default system platform, as well as patterns for compatible architectures. This file was not being setup properly due to a misunderstanding of the format in a previous patch. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index a722e68ae1..caafbdc721 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -48,6 +48,7 @@ fakeroot rootfs_rpm_do_rootfs () {
48 48
49 #install pacakges 49 #install pacakges
50 export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}" 50 export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}"
51 export INSTALL_PLATFORM_RPM="${TARGET_ARCH}"
51 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}" 52 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}"
52 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}" 53 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}"
53 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}" 54 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}"
@@ -56,9 +57,9 @@ fakeroot rootfs_rpm_do_rootfs () {
56 export INSTALL_TASK_RPM="populate_sdk" 57 export INSTALL_TASK_RPM="populate_sdk"
57 58
58 # List must be prefered to least preferred order 59 # List must be prefered to least preferred order
59 INSTALL_PLATFORM_RPM="" 60 INSTALL_PLATFORM_EXTRA_RPM=""
60 for each_arch in ${PACKAGE_ARCHS} ; do 61 for each_arch in ${PACKAGE_ARCHS} ; do
61 INSTALL_PLATFORM_RPM="$each_arch $INSTALL_PLATFORM_RPM" 62 INSTALL_PLATFORM_EXTRA_RPM="$each_arch $INSTALL_PLATFORM_EXTRA_RPM"
62 done 63 done
63 export INSTALL_PLATFORM_RPM 64 export INSTALL_PLATFORM_RPM
64 65