diff mbox series

[6/7] multilib: fix SSTATE_ARCHS for multilib usage

Message ID 20230919214621.903967-6-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 37126ffc7ccbd3df57ebbd8e581d158f03bb3b4c
Headers show
Series [1/7] license/license_image: Fix license file layout to avoid overlapping files | expand

Commit Message

Richard Purdie Sept. 19, 2023, 9:46 p.m. UTC
When building multilibs, we need to inject the multilib sstate pkgarch
into SSTATE_ARCHS so the list forms a complete search path. Add a tweak
to do this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/multilib.bbclass | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 8a1a51aabad..673ae98fec1 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -13,6 +13,7 @@  python multilib_virtclass_handler () {
     localdata = bb.data.createCopy(e.data)
     localdata.delVar('TMPDIR')
     e.data.setVar('STAGING_KERNEL_DIR', localdata.getVar('STAGING_KERNEL_DIR'))
+    e.data.appendVar('SSTATE_ARCHS', " " + localdata.getVar('TUNE_PKGARCH'))
 
     # There should only be one kernel in multilib configs
     # We also skip multilib setup for module packages.