[9/9] kernel-yocto: fix defconfig detection in find_sccs()

Submitted by Bruce Ashfield on Feb. 5, 2020, 11:12 p.m. | Patch ID: 169773


Message ID 36300ff0f34f374ade66d2a35d0f9771a187ec7e.1580944129.git.bruce.ashfield@gmail.com
State New
Headers show

Commit Message

Bruce Ashfield Feb. 5, 2020, 11:12 p.m.
From: Gavin Li <gavinli@thegavinli.com>

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>
 meta/classes/kernel-yocto.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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"]:
-        elif base and base in 'defconfig':
+        elif base and 'defconfig' in base:
     return sources_list