summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-08-09 18:41:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-13 23:06:01 +0100
commit0bc564af07c1bae8112f834a60aea3b72af7de13 (patch)
tree70361b122d64b0d74900cb67ebff64d5084a2291 /meta/classes/image.bbclass
parentc8879e23ab19af1e74c09310d33d3c7c519f63b7 (diff)
downloadpoky-0bc564af07c1bae8112f834a60aea3b72af7de13.tar.gz
image.bbclass: Move runtime_mapping_rename to avoid conflict w/ multilib
[YOCTO #4993] Move the runtime_mapping_rename into a prefunc for the do_rootfs function. Otherwise doing it in the python section could occur BEFORE the multilib classes renaming. If the package 'b' is a kernel module, then lib32-b and b should both point to the same package. The runtime_mapping code will do this automatically. Before if you ran: bitbake lib32-<image> It may do: start PACKAGE_INSTALL (a b c) remap (a b c) MULTILIB naming (lib32-a lib32-b lib32-c) What we want is: start PACKAGE_INSTALL (a b c) MULTILIB naming (lib32-a lib32-b lib32-c) remap (lib32-a b lib32-c) (From OE-Core rev: 836662c9a9c175521dbcd29cdfc0a7c144d8770f) 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/image.bbclass')
-rw-r--r--meta/classes/image.bbclass17
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index cf02f88de5..4aae3a7819 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -128,12 +128,6 @@ python () {
128 128
129 d.setVar('IMAGE_FEATURES', ' '.join(list(remain_features))) 129 d.setVar('IMAGE_FEATURES', ' '.join(list(remain_features)))
130 130
131 if d.getVar('BB_WORKERCONTEXT', True) is not None:
132 pn = d.getVar('PN', True)
133 runtime_mapping_rename("PACKAGE_INSTALL", pn, d)
134 runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d)
135 runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d)
136
137 # Ensure we have the vendor list for complementary package handling 131 # Ensure we have the vendor list for complementary package handling
138 ml_vendor_list = "" 132 ml_vendor_list = ""
139 multilibs = d.getVar('MULTILIBS', True) or "" 133 multilibs = d.getVar('MULTILIBS', True) or ""
@@ -271,6 +265,17 @@ read_only_rootfs_hook () {
271 fi 265 fi
272} 266}
273 267
268# We have to delay the runtime_mapping_rename until just before rootfs runs
269# otherwise, the multilib renaming could step in and squash any fixups that
270# may have occurred.
271python rootfs_runtime_mapping() {
272 pn = d.getVar('PN', True)
273 runtime_mapping_rename("PACKAGE_INSTALL", pn, d)
274 runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d)
275 runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d)
276}
277do_rootfs[prefuncs] += "rootfs_runtime_mapping"
278
274fakeroot do_rootfs () { 279fakeroot do_rootfs () {
275 #set -x 280 #set -x
276 # When use the rpm incremental image generation, don't remove the rootfs 281 # When use the rpm incremental image generation, don't remove the rootfs