diff options
authorAndrei Gherzan <>2021-03-29 13:23:07 +0100
committerNaveen Saini <>2021-03-31 13:17:09 +0800
commitd52c30f4113052d9b23fce076d5f094194da6036 (patch)
parentdcad4183b0c5642aa8bb2cd3039ebc3ed95d0a16 (diff)
meta-zephyr-d52c30f4113052d9b23fce076d5f094194da6036.tar.bz2 Support samples from external layers
The inc file references patch(es) local to the inc file. Including this file from another recipe as part of an external layer, will make bitbake fail finding the files referenced in's SRC_URI. By including an explicit path to the files directory in FILESEXTRAPATHS, we make sure that any recipe including this inc file will inherit the needed path. Signed-off-by: Andrei Gherzan <> Signed-off-by: Naveen Saini <>
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/ b/recipes-kernel/zephyr-kernel/
index 39cbc10..8c987bb 100644
--- a/recipes-kernel/zephyr-kernel/
+++ b/recipes-kernel/zephyr-kernel/
@@ -7,6 +7,11 @@ include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
inherit cmake
+# This file might be included from other places (like other layers) and not
+# having an explicit path to the patches directory, will make bitbake fail to
+# find the patch(es) in SRC_URI.
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI = "\
git://;protocol=https;branch=master;name=default \
git://;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \