On sty 26, 2025 16:51, Jörg Sommer wrote:
> Slawomir Stepien via lists.openembedded.org schrieb am So 26. Jan, 13:43 
> (+0100):
> > Based on the documentation of KCONFIG_MODE[1], when we use "in-tree"
> > defconfig (the KBUILD_DEFCONFIG is set), then the alldefconfig mode
> > should be used with merge_config.sh.
> > 
> > This commit fixes the logic behind setting the flag by checking if the
> > provided defconfig file exists in the linux source tree.
> > 
> > [1] 
> > https://docs.yoctoproject.org/ref-manual/variables.html#term-KCONFIG_MODE
> > 
> > Signed-off-by: Slawomir Stepien <s...@poczta.fm>
> > ---
> >  meta/classes-recipe/kernel-yocto.bbclass | 18 +++++++++++++++---
> >  1 file changed, 15 insertions(+), 3 deletions(-)
> > 
> > diff --git a/meta/classes-recipe/kernel-yocto.bbclass 
> > b/meta/classes-recipe/kernel-yocto.bbclass
> > index c45abf6ddc..ffda41ffc9 100644
> > --- a/meta/classes-recipe/kernel-yocto.bbclass
> > +++ b/meta/classes-recipe/kernel-yocto.bbclass
> > @@ -113,6 +113,14 @@ def get_dirs_with_fragments(d):
> >  
> >      return " ".join(extrafiles)
> >  
> > +kbuild_defconfig_exists() {
> > +   if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then
> > +           return 0
> > +   fi
> > +
> > +   return 1
> 
> Hi,

Hi Jörg,

Thanks for all these good comments. After Bruce's comment, I will not push 
further this approach.

> (...)

-- 
Slawomir Stepien
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#210311): 
https://lists.openembedded.org/g/openembedded-core/message/210311
Mute This Topic: https://lists.openembedded.org/mt/110821216/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to