summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-02-15 22:56:13 -0600
committerSaul Wold <sgw@linux.intel.com>2011-02-16 07:34:51 -0800
commitab0e1bed22b5054db5a2b62862134ad3b0714181 (patch)
tree291945a5f5260eb8e75186b8f31af06a54761fc4 /meta/classes/rootfs_rpm.bbclass
parent110f1f9418ba39ba4136d7aa7c3d52c2a10f47f0 (diff)
downloadpoky-ab0e1bed22b5054db5a2b62862134ad3b0714181.tar.gz
package_rpm: Fix solverdb generation
The RPM solverdb was potentially being generated multiple times. Fix this by ensuring we only process each directory once. Also correct an issue where the solution did not necessarily follow the preferred architecture ordering, reverse the default Poky ordering so that preferred is listed first. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 6fe11f77e4..a722e68ae1 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -48,8 +48,6 @@ 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}"
52 export INSTALL_PLATFORM_EXTRA_RPM="${PACKAGE_ARCHS}"
53 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}" 51 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}"
54 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}" 52 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}"
55 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}" 53 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}"
@@ -57,6 +55,13 @@ fakeroot rootfs_rpm_do_rootfs () {
57 export INSTALL_PROVIDENAME_RPM="" 55 export INSTALL_PROVIDENAME_RPM=""
58 export INSTALL_TASK_RPM="populate_sdk" 56 export INSTALL_TASK_RPM="populate_sdk"
59 57
58 # List must be prefered to least preferred order
59 INSTALL_PLATFORM_RPM=""
60 for each_arch in ${PACKAGE_ARCHS} ; do
61 INSTALL_PLATFORM_RPM="$each_arch $INSTALL_PLATFORM_RPM"
62 done
63 export INSTALL_PLATFORM_RPM
64
60 package_install_internal_rpm 65 package_install_internal_rpm
61 66
62 export D=${IMAGE_ROOTFS} 67 export D=${IMAGE_ROOTFS}