[PATCH 1/1] linux-distro: Fix check for native or compat override

2 views
Skip to first unread message

Felix Moessbauer

unread,
May 27, 2026, 8:22:35 AM (4 days ago) May 27
to isar-...@googlegroups.com, jan.k...@siemens.com, Felix Moessbauer
We must not inject the stubs on compat or native, as otherwise we get
the multiple providers warning. Commit 367c5d99 tried to fix this, but
used incorrect Python syntax to express the condition. By that, only the
class-native was excluded, but not compat.

Fixes: 367c5d99 ("linux-distro: Fix multiple provider warnings")
Signed-off-by: Felix Moessbauer <felix.mo...@siemens.com>
---
meta/recipes-kernel/linux/linux-distro.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/linux-distro.bb b/meta/recipes-kernel/linux/linux-distro.bb
index 638ad65a..8fc1bcb7 100644
--- a/meta/recipes-kernel/linux/linux-distro.bb
+++ b/meta/recipes-kernel/linux/linux-distro.bb
@@ -6,7 +6,8 @@
# SPDX-License-Identifier: MIT

python() {
- if ("class-native" or "class-compat") in d.getVar("OVERRIDES").split(":"):
+ overrides = d.getVar("OVERRIDES").split(":")
+ if any(o in overrides for o in ("class-native", "class-compat")):
return

distro_kernels = d.getVar('DISTRO_KERNELS') or ""
--
2.53.0

Jan Kiszka

unread,
May 28, 2026, 3:00:18 AM (4 days ago) May 28
to Felix Moessbauer, isar-...@googlegroups.com
Well, yeah, "obviously".

Reviewed-by: Jan Kiszka <jan.k...@siemens.com>

Jan

--
Siemens AG, Foundational Technologies
Linux Expert Center
Reply all
Reply to author
Forward
0 new messages