summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Müller-Klieser <S.Mueller-Klieser@phytec.de>2019-01-24 10:04:27 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-01-29 10:42:09 +0100
commitc5e8a9ae187e536a70c075fb5a65c260297d183d (patch)
tree20b16fd1cd490d34e96dfcce60cedc7ad25b5fe6
parentac44319d7e27a089f52302cf35348c76bcb0f566 (diff)
downloadmeta-phytec-c5e8a9ae187e536a70c075fb5a65c260297d183d.tar.bz2
meta-phytec-c5e8a9ae187e536a70c075fb5a65c260297d183d.zip
kconfig.bbclass: fix file origin for .cfg files
When we inject files into the build, we need to stick to the yocto workflow. Files used in SRC_URI get copied to the WORKDIR. For further processing, we need to take the file version from WORKDIR and don't use the original source version of the file. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--classes/kconfig.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/kconfig.bbclass b/classes/kconfig.bbclass
index 6eeee46..dd9a96e 100644
--- a/classes/kconfig.bbclass
+++ b/classes/kconfig.bbclass
@@ -33,7 +33,7 @@ def find_cfgs(d):
for s in sources:
base, ext = os.path.splitext(os.path.basename(s))
if ext and ext in [".cfg"]:
- sources_list.append(s)
+ sources_list.append(os.path.join(d.getVar("WORKDIR", True), (base + ext)))
return sources_list
kconfig_do_configure() {