All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: fix sstate namespace collision
@ 2026-11-23 12:41 Ronaldo Nunez
  2026-11-30  4:27 ` [meta-virtualization][PATCH] " Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Ronaldo Nunez @ 2026-11-23 12:41 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Ronaldo Nunez

The sstate namespace is defined by PACKAGE_ARCH which defaults to
TUNE_PKGARCH. Building for a second MACHINE that shares the same tune
will fail due to a collision on that namespace.

Set PACKAGE_ARCH to MACHINE_ARCH in both recipe include files, so each
machine gets an isolated output namespace.

Tested by building xen for qemuarm64 and for a qemuarm64-derived
machine with the same tune, both now build.

Signed-off-by: Ronaldo Nunez <rnunez@baylibre.com>
---
 recipes-extended/xen/xen-hypervisor.inc | 2 ++
 recipes-extended/xen/xen-tools.inc      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/recipes-extended/xen/xen-hypervisor.inc b/recipes-extended/xen/xen-hypervisor.inc
index f448564d1f96634605ec97658d48333ff6dd96d8..40d2e472aabc0ad3236c3325c0d16c818ed35e13 100644
--- a/recipes-extended/xen/xen-hypervisor.inc
+++ b/recipes-extended/xen/xen-hypervisor.inc
@@ -11,6 +11,8 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux|aarch64.*-linux'
 
 inherit deploy python3native cml1
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 PACKAGES = " \
     ${PN} \
     ${PN}-dbg \
diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
index f38cabc2b1766ceb9b2a64f48eddc37e413a5cc6..2a18fe1e3613e45f4755cbb0767bebb537db0f24 100644
--- a/recipes-extended/xen/xen-tools.inc
+++ b/recipes-extended/xen/xen-tools.inc
@@ -6,6 +6,8 @@ COMPATIBLE_HOST = 'i686-.*-linux|(x86_64.*).*-linux|aarch64.*-linux'
 inherit setuptools3 update-rc.d systemd deploy
 require xen-blktap.inc
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 # dom0 network topology for DomU guests. Set XEN_DOM0_NETWORK in local.conf:
 #   bridged (default) - eth0 is enslaved into xenbr0 and xenbr0 gets DHCP; DomU
 #                       vifs bridge onto whatever LAN xenbr0's uplink is on.

---
base-commit: 89b00d096a432000766729cd721ae647af500112
change-id: 20261123-sstate-collision-fix-735333853d9d

Best regards,
-- 
Ronaldo Nunez <rnunez@baylibre.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 12:41 [PATCH] xen: fix sstate namespace collision Ronaldo Nunez
2026-11-30  4:27 ` [meta-virtualization][PATCH] " Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.