Skip to contentSkip to conversation

barebox.bbclass: use consistent make flags for menuconfig

PATCH In review Enrico Jörns 2 participants 5 messages Feb 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 barebox.bbclass: use consistent make flags for menuconfig

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.

---
 meta/classes-recipe/barebox.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes-recipe/barebox.bbclass +1 -0
index 200ba08326..baba0a2965 100644
@@ -53,6 +53,7 @@ EXTRA_OEMAKE = " \
     PKG_CONFIG=pkg-config-native \
     CROSS_PKG_CONFIG=pkg-config \
 "
+KCONFIG_CONFIG_COMMAND:append = " ${EXTRA_OEMAKE}"
 
 BAREBOX_CONFIG[doc] = "The barebox kconfig defconfig file. Not used if a file called defconfig is added to the SRC_URI."
 BAREBOX_CONFIG ?= ""
Signature · 1 line
2.39.5
#1 lore raw
Quoted 20 lines · Enrico Jörns via lists.openembedded.org

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.

---
 meta/classes-recipe/barebox.bbclass | 1 +

 1 file changed, 1 insertion(+)
meta/classes-recipe/barebox.bbclass +0 -0
index 200ba08326..baba0a2965 100644
@@ -53,6 +53,7 @@ EXTRA_OEMAKE = " \
      PKG_CONFIG=pkg-config-native \
      CROSS_PKG_CONFIG=pkg-config \
Quoted 3 lines

 "
+KCONFIG_CONFIG_COMMAND:append = " ${EXTRA_OEMAKE}"

Can we use += here rather than append?

Cheers,

Richard

#2 lore raw

Am Donnerstag, dem 27.02.2025 um 11:17 +0000 schrieb Richard Purdie:

Quoted 14 lines · Enrico Jörns via lists.openembedded.org
Quoted 13 lines

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.

---
 meta/classes-recipe/barebox.bbclass | 1 +

 1 file changed, 1 insertion(+)
Quoted 12 lines
Quoted 10 lines
meta/classes-recipe/barebox.bbclass +0 -0
index 200ba08326..baba0a2965 100644
@@ -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}"

Regards, Enrico

Quoted 4 lines

Cheers,

Richard

Signature · 4 lines
Pengutronix e.K.                           | Enrico Jörns                |
Embedded Linux Consulting & Support        | https://www.pengutronix.de/ |
Steuerwalder Str. 21                       | Phone: +49-5121-206917-180  |
31137 Hildesheim, Germany                  | Fax:   +49-5121-206917-9    |
#3 lore raw
Quoted 39 lines · Enrico Jörns

Am Donnerstag, dem 27.02.2025 um 11:17 +0000 schrieb Richard Purdie:

Quoted 19 lines
Quoted 17 lines · Enrico Jörns via lists.openembedded.org

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.

---
 meta/classes-recipe/barebox.bbclass | 1 +

 1 file changed, 1 insertion(+)
Quoted 13 lines
Quoted 11 lines
meta/classes- renamed from meta/classes-recipe/barebox.bbclass +0 -0

recipe/barebox.bbclass
index 200ba08326..baba0a2965 100644

meta/classes-recipe/barebox.bbclass +0 -0
@@ -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"

Quoted 8 lines

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

#4 lore raw

Am Donnerstag, dem 27.02.2025 um 11:44 +0000 schrieb Richard Purdie:

Quoted 44 lines · Enrico Jörns
Quoted 43 lines

Am Donnerstag, dem 27.02.2025 um 11:17 +0000 schrieb Richard Purdie:

Quoted 19 lines
Quoted 17 lines · Enrico Jörns via lists.openembedded.org

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.

---
 meta/classes-recipe/barebox.bbclass | 1 +

 1 file changed, 1 insertion(+)
Quoted 13 lines
Quoted 11 lines
meta/classes- renamed from meta/classes-recipe/barebox.bbclass +0 -0

recipe/barebox.bbclass
index 200ba08326..baba0a2965 100644

meta/classes-recipe/barebox.bbclass +0 -0
@@ -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.

Quoted 7 lines
Quoted 4 lines

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!

Sounds good.

Quoted 2 lines

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

That would be my assumption, too. I'll make a quick check with these to not break too obvious things and will send a new patch then.

Thanks and regards

Enrico

Quoted 4 lines

Cheers,

Richard

Signature · 4 lines
Pengutronix e.K.                           | Enrico Jörns                |
Embedded Linux Consulting & Support        | https://www.pengutronix.de/ |
Steuerwalder Str. 21                       | Phone: +49-5121-206917-180  |
31137 Hildesheim, Germany                  | Fax:   +49-5121-206917-9    |