]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: fix defconfig detection in find_sccs()
authorGavin Li <gavinli@thegavinli.com>
Thu, 6 Feb 2020 17:35:52 +0000 (12:35 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2020 13:19:56 +0000 (13:19 +0000)
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 <gavinli@thegavinli.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass

index d961901b746c7c346be3389c0e89ff30d62b0009..918d101d3d7a1c0e8846e4abfb4a639626d6fe05 100644 (file)
@@ -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