mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
@@ -47,7 +47,7 @@ def find_sccs(d):
|
||||
base, ext = os.path.splitext(os.path.basename(s))
|
||||
if ext and ext in [".scc", ".cfg"]:
|
||||
sources_list.append(s)
|
||||
elif base and base in 'defconfig':
|
||||
elif base and 'defconfig' in base:
|
||||
sources_list.append(s)
|
||||
|
||||
return sources_list
|
||||
|
||||
Reference in New Issue
Block a user