diff mbox series

[09/12] linux-yocto: Avoid arch dependent vardeps for SRC_URI

Message ID 20260318-fix-checklayer-2-v1-9-388ba6ce47cd@pbarker.dev
State New
Headers show
Series Further check-layer fixes | expand

Commit Message

Paul Barker March 18, 2026, 5:14 p.m. UTC
yocto-check-layer will fail if SRC_URI is dependent on the target
architecture. Usually we would try to remove the dependency, but for the
linux-yocto recipe it's necessary in order to select the appropriate
branch from the source repository.

As none of the checks performed by yocto-check-layer actually depend on
the selected branch, we can discard this depedency by specifying a
generic vardepvalue for the branch name.

Signed-off-by: Paul Barker <paul@pbarker.dev>
---
 meta/recipes-kernel/linux/linux-yocto.inc | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index f47873348a9a..18f910f34e56 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -93,3 +93,8 @@  do_devshell:prepend() {
     d.setVar("HOSTPKG_CONFIG", "pkg-config-native")
     d.appendVar("OE_TERMINAL_EXPORTS", " HOSTPKG_CONFIG")
 }
+
+# Avoid potentially architecture dependent value when evaluating vardeps of
+# SRC_URI. This does mean do_recipe_qa may not re-run when KBRANCH changes, but
+# that should not invalidate the QA test.
+KBRANCH[vardepvalue] = "master"