summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorGavin Li <gavinli@thegavinli.com>2020-02-06 12:35:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-08 13:20:02 +0000
commitcc71bb7b73fed2ea0e531b99ae955099973a3aac (patch)
tree037266908a3b7c9825fefe966e600e9d71fe48ff /meta/classes/kernel-yocto.bbclass
parent7ba241a697f87c5410604e72596a2d40e36e3e54 (diff)
downloadpoky-cc71bb7b73fed2ea0e531b99ae955099973a3aac.tar.gz
kernel-yocto: fix defconfig detection in find_sccs()
The current code would cause a file like "config.bin" to added to the config sources list. I am sure the intention was to add any files with defconfig in its name and not the other way around. (From OE-Core rev: 06577d49c50b7e9f1f40fe5b52ec88d1bdc1430c) Signed-off-by: Gavin Li <gavinli@thegavinli.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index d961901b74..918d101d3d 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -47,7 +47,7 @@ def find_sccs(d):
47 base, ext = os.path.splitext(os.path.basename(s)) 47 base, ext = os.path.splitext(os.path.basename(s))
48 if ext and ext in [".scc", ".cfg"]: 48 if ext and ext in [".scc", ".cfg"]:
49 sources_list.append(s) 49 sources_list.append(s)
50 elif base and base in 'defconfig': 50 elif base and 'defconfig' in base:
51 sources_list.append(s) 51 sources_list.append(s)
52 52
53 return sources_list 53 return sources_list