diff options
author | Kai Kang <kai.kang@windriver.com> | 2022-01-17 00:21:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-17 11:49:12 +0000 |
commit | 63099553f607b34732ad0903651cf97fbebdc46f (patch) | |
tree | 6624585aca96c64ecaacbbb2c6671b13464a85af /meta/classes | |
parent | bf28cf6825603416ba5f23634fc1b67e5914dd24 (diff) | |
download | poky-63099553f607b34732ad0903651cf97fbebdc46f.tar.gz |
multilib.bbclass: set rpm file color for 32-bit multilib image
The default rpm file color is 2 that Elf64 is preferred according to
OE-Core commit 56fa74497393a10f751d01c600c1936761e00294. For 32-bit
multilib image such as lib32-core-image-sato, Elf32 should be preferred.
Set it in multilib.bbclass.
(From OE-Core rev: 195f4a648251e53ed3070e060ad3e3f3832793e3)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/multilib.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index 73ad2ab7b3..4a3e582816 100644 --- a/meta/classes/multilib.bbclass +++ b/meta/classes/multilib.bbclass | |||
@@ -92,6 +92,10 @@ multilib_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise" | |||
92 | 92 | ||
93 | python __anonymous () { | 93 | python __anonymous () { |
94 | if bb.data.inherits_class('image', d): | 94 | if bb.data.inherits_class('image', d): |
95 | # set rpm preferred file color for 32-bit multilib image | ||
96 | if d.getVar("SITEINFO_BITS") == "32": | ||
97 | d.setVar("RPM_PREFER_ELF_ARCH", "1") | ||
98 | |||
95 | variant = d.getVar("BBEXTENDVARIANT") | 99 | variant = d.getVar("BBEXTENDVARIANT") |
96 | import oe.classextend | 100 | import oe.classextend |
97 | 101 | ||