summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-02-20 13:31:11 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-22 06:09:23 -0800
commitb2e4a965f3b15ae25d45fbd5d05bb956a9d639aa (patch)
tree8753cc1c18982267ee36cede28def8f475995506 /meta/classes/rootfs_rpm.bbclass
parent5e3bbb652041954c02e1f8642c9f9874b1741a02 (diff)
downloadpoky-b2e4a965f3b15ae25d45fbd5d05bb956a9d639aa.tar.gz
rootfs_rpm.bbclass: Reorder feed priority based on multilib image setting
[ YOCTO #3915 ] [ CQID: WIND00404309 ] When doing a multilib image build, such as bitbake lib32-core-image-sato, the system needs to reorder the priority level of the feeds. If it does not reorder the priorities, then 64-bit items can be selected by the automatic dependency resolution in Smart. (From OE-Core rev: dfbb1aa184955923b85b81aabf944de8f1a1e4b5) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 5651243090..920380e559 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -62,18 +62,27 @@ fakeroot rootfs_rpm_do_rootfs () {
62 mkdir -p ${INSTALL_ROOTFS_RPM}/etc/rpm/ 62 mkdir -p ${INSTALL_ROOTFS_RPM}/etc/rpm/
63 63
64 # List must be prefered to least preferred order 64 # List must be prefered to least preferred order
65 default_extra_rpm=""
65 INSTALL_PLATFORM_EXTRA_RPM="" 66 INSTALL_PLATFORM_EXTRA_RPM=""
66 for i in ${MULTILIB_PREFIX_LIST} ; do 67 for i in ${MULTILIB_PREFIX_LIST} ; do
67 old_IFS="$IFS" 68 old_IFS="$IFS"
68 IFS=":" 69 IFS=":"
69 set $i 70 set $i
70 IFS="$old_IFS" 71 IFS="$old_IFS"
72 mlib=$1
71 shift #remove mlib 73 shift #remove mlib
72 while [ -n "$1" ]; do 74 while [ -n "$1" ]; do
73 INSTALL_PLATFORM_EXTRA_RPM="$INSTALL_PLATFORM_EXTRA_RPM $1" 75 if [ "$mlib" = "${BBEXTENDVARIANT}" ]; then
76 default_extra_rpm="$default_extra_rpm $1"
77 else
78 INSTALL_PLATFORM_EXTRA_RPM="$INSTALL_PLATFORM_EXTRA_RPM $1"
79 fi
74 shift 80 shift
75 done 81 done
76 done 82 done
83 if [ -n "$default_extra_rpm" ]; then
84 INSTALL_PLATFORM_EXTRA_RPM="$default_extra_rpm $INSTALL_PLATFORM_EXTRA_RPM"
85 fi
77 export INSTALL_PLATFORM_EXTRA_RPM 86 export INSTALL_PLATFORM_EXTRA_RPM
78 87
79 package_install_internal_rpm 88 package_install_internal_rpm