Skip to contentSkip to conversation

multilib.bbclass: set rpm file color for 32-bit multilib image

PATCH New [email protected] 1 participant 1 message Jan 16, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/2 multilib.bbclass: set rpm file color for 32-bit multilib image

From: Kai Kang <[email protected]>

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.

---
 meta/classes/multilib.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/multilib.bbclass +4 -0
index 73ad2ab7b3..4a3e582816 100644
@@ -92,6 +92,10 @@ multilib_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
 
 python __anonymous () {
     if bb.data.inherits_class('image', d):
+        # set rpm preferred file color for 32-bit multilib image
+        if d.getVar("SITEINFO_BITS") == "32":
+            d.setVar("RPM_PREFER_ELF_ARCH", "1")
+
         variant = d.getVar("BBEXTENDVARIANT")
         import oe.classextend
 
Signature · 1 line
2.17.1