diff mbox series

[meta-zephyr,3/5] zephyr-core/zephyr-kernel: Use layer-relative require for version file

Message ID 20221216153723.1522131-3-peter.hoyes@arm.com
State New
Headers show
Series [meta-zephyr,1/5] CI: Add variables needed for k8s runners | expand

Commit Message

Peter Hoyes Dec. 16, 2022, 3:37 p.m. UTC
From: Peter Hoyes <Peter.Hoyes@arm.com>

The inclusion of the Zephyr version-specific .inc file is currently
using a local include. Change to be layer-relative to support including
files in other layers.

Change to use 'require' instead of 'include' so that an earlier error is
printed if the file does not exist.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
---
 .../recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index aa299e0..a19d074 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -13,4 +13,4 @@  S = "${WORKDIR}/git"
 
 # Default to a stable version
 PREFERRED_VERSION_zephyr-kernel ??= "3.2.0"
-include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
+require recipes-kernel/zephyr-kernel/zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc