From: Gavin Li Date: Thu, 6 Feb 2020 17:35:52 +0000 (-0500) Subject: kernel-yocto: fix defconfig detection in find_sccs() X-Git-Tag: uninative-2.8~254 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=06577d49c50b7e9f1f40fe5b52ec88d1bdc1430c;p=openembedded-core.git 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. Signed-off-by: Gavin Li Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- 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): 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