Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Enrico Jörns" <ejo@pengutronix.de>,
	openembedded-core@lists.openembedded.org
Cc: yocto@pengutronix.de, "Ulrich Ölmann" <u.oelmann@pengutronix.de>
Subject: Re: [OE-core] [PATCH] barebox.bbclass: use consistent make flags for menuconfig
Date: Thu, 27 Feb 2025 11:44:00 +0000	[thread overview]
Message-ID: <2b2bc885dcac8b7f57e615d3d1e181766a7e7f1d.camel@linuxfoundation.org> (raw)
In-Reply-To: <3601ee15eb248f29bf38f28f467cf058d425b7f2.camel@pengutronix.de>

On Thu, 2025-02-27 at 12:23 +0100, Enrico Jörns wrote:
> Am Donnerstag, dem 27.02.2025 um 11:17 +0000 schrieb Richard Purdie:
> > On Thu, 2025-02-27 at 10:28 +0100, Enrico Jörns via
> > lists.openembedded.org wrote:
> > > This change is done similar to the change in the kernel.bbclass
> > > of
> > > commit 8c616bc0 ("kernel: Use consistent make flags for
> > > menuconfig").
> > > 
> > > This was discovered since the new CONFIG_GCC_VERSION kconfig
> > > symbol
> > > reflected the host GCC version instead of the target ones after
> > > running
> > > do_menuconfig.
> > > 
> > > Reported-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
> > > Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
> > > ---
> > >  meta/classes-recipe/barebox.bbclass | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/meta/classes-recipe/barebox.bbclass b/meta/classes-
> > > recipe/barebox.bbclass
> > > index 200ba08326..baba0a2965 100644
> > > --- a/meta/classes-recipe/barebox.bbclass
> > > +++ b/meta/classes-recipe/barebox.bbclass
> > > @@ -53,6 +53,7 @@ EXTRA_OEMAKE = " \
> > >      PKG_CONFIG=pkg-config-native \
> > >      CROSS_PKG_CONFIG=pkg-config \
> > >  "
> > > +KCONFIG_CONFIG_COMMAND:append = " ${EXTRA_OEMAKE}"
> > >  
> > 
> > Can we use += here rather than append?
> 
> TBH I've copied the line from the kernel.bbclass.
> I guess this is because of
> 
>   KCONFIG_CONFIG_COMMAND ??= "menuconfig"
> 
> in the cml1.bbclass.
> 
> If I'd replace the weak default there, it should work.
> 
> Or would it make sense to just set EXTRA_OEMAKE in cml1.bbclass by
> default? Like
> 
>   KCONFIG_CONFIG_COMMAND ??= "menuconfig ${EXTRA_OEMAKE}"

Setting it to just include it probably makes the most sense at this
point. I'm just trying to keep the variables simple!

That would affect busybox and u-boot but I suspect they probably need
the same fix too.

Cheers,

Richard


  reply	other threads:[~2025-02-27 11:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27  9:28 [PATCH] barebox.bbclass: use consistent make flags for menuconfig Enrico Jörns
2025-02-27 11:17 ` [OE-core] " Richard Purdie
2025-02-27 11:23   ` Enrico Jörns
2025-02-27 11:44     ` Richard Purdie [this message]
2025-02-27 11:47       ` Enrico Jörns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b2bc885dcac8b7f57e615d3d1e181766a7e7f1d.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=ejo@pengutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=u.oelmann@pengutronix.de \
    --cc=yocto@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox