[OE-core] [PATCH] kernel-yocto: fix defconfig detection in find_sccs()
Bruce Ashfield
bruce.ashfield at gmail.com
Wed Feb 5 03:46:10 UTC 2020
I've staged this change and will send it along with my next pull request.
Bruce
On Sun, Jan 26, 2020 at 12:36 AM <gavinli at thegavinli.com> wrote:
>
> From: Gavin Li <gavinli at 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 at thegavinli.com>
> ---
> meta/classes/kernel-yocto.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
> index 87c681f1c3..32b32ac291 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -31,7 +31,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
> --
> 2.24.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
More information about the Openembedded-core
mailing list