]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cml1.bbclass: use consistent make flags for menuconfig
authorEnrico Jörns <ejo@pengutronix.de>
Fri, 28 Feb 2025 07:42:27 +0000 (08:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Mar 2025 18:00:47 +0000 (18:00 +0000)
commit1b6ddd452837e67b500a84455a234f5edc8250a9
treea6690c05f703d60d398b93cd91cc0b6a7b2741de
parent42d14c130f2159c1d9ea314acc93142e6ccb2761
cml1.bbclass: use consistent make flags for menuconfig

The class called 'make menuconfig' without any of the make variables and
options set in EXTRA_OEMAKE, resulting in a quite different build
environment than actually intended.

For the kernel.bbclass this was fixed in commit 8c616bc0 ("kernel: Use
consistent make flags for menuconfig") by appending ${EXTRA_OEMAKE} to
KCONFIG_CONFIG_COMMAND.

Instead of fixing this individually for additional recipes, we simply
include ${EXTRA_OEMAKE} in KCONFIG_CONFIG_COMMAND by default.

For most class users, this change is directly visible in the generated
.config file:

* For barebox and u-boot, the CONFIG_GCC_VERSION erroneously reflected
  the host GCC version before where it now correctly reflects the target
  toolchain's GCC.

* For u-boot, also the "Compiler: " line at the beginning of the .config
  now prints the target toolchain instead of the host ones.

* The kernel had this already set.

* busybox did not produce any difference.

Note that these projects might base some compile-time decisions on e.g.
the actual compiler version used. Having the wrong one in the
menuconfig-generated .config affects at least the visibility and
consistency.

Reported-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass
meta/classes-recipe/kernel.bbclass