summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei.gherzan@huawei.com>2021-03-29 13:23:07 +0100
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-03-31 13:17:09 +0800
commitd52c30f4113052d9b23fce076d5f094194da6036 (patch)
tree848ba2b40b66ece75a1cbca6a3f8af47dbfcecbb
parentdcad4183b0c5642aa8bb2cd3039ebc3ed95d0a16 (diff)
downloadmeta-zephyr-d52c30f4113052d9b23fce076d5f094194da6036.tar.gz
meta-zephyr-d52c30f4113052d9b23fce076d5f094194da6036.tar.bz2
meta-zephyr-d52c30f4113052d9b23fce076d5f094194da6036.zip
zephyr-kernel-src.inc: 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 zephyr-kernel-src.inc'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 <andrei.gherzan@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 39cbc10..8c987bb 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -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://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=master;name=default \
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \