Skip to contentSkip to conversation

boot/barebox: kconfig needs the toolchain

PATCH New Jules Maselbas 3 participants 3 messages Dec 8, 2020 – Jan 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot/barebox: kconfig needs the toolchain

In barebox v2020.09.0, kconfig has been updated to a newer version based on Linux 5.9-rc2. As in linux, kconfig can call the compiler to test its capabilities.

---
 boot/barebox/barebox.mk | 5 +++++
 1 file changed, 5 insertions(+)
boot/barebox/barebox.mk +5 -0
index 422f27312d..2e80954741 100644
@@ -88,6 +88,11 @@ $(1)_KCONFIG_DEPENDENCIES = \
 	$(BR2_BISON_HOST_DEPENDENCY) \
 	$(BR2_FLEX_HOST_DEPENDENCY)
 
+# Starting with barebox v2020.09.0, the kconfig used calls the
+# cross-compiler to check its capabilities. So we need the
+# toolchain before we can call the configurators.
+$(1)_KCONFIG_DEPENDENCIES += toolchain
+
 ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
 define $(1)_BUILD_BAREBOXENV_CMDS
 	$$(TARGET_CC) $$(TARGET_CFLAGS) $$(TARGET_LDFLAGS) -o $$(@D)/bareboxenv \
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 boot/barebox: kconfig needs the toolchain

Jules, All,

On 2020-12-08 11:11 +0100, Jules Maselbas via buildroot spake thusly:

Quoted 5 lines

In barebox v2020.09.0, kconfig has been updated to a newer version based on Linux 5.9-rc2. As in linux, kconfig can call the compiler to test its capabilities.

Applied to master, thanks!

I've just added a little blurb about custom versions: since we can't know whether custom version need the toolchain or not, we just make that unconditional.

Thanks!

Regards,
Yann E. MORIN.

Quoted 28 lines
---
 boot/barebox/barebox.mk | 5 +++++
 1 file changed, 5 insertions(+)
boot/barebox/barebox.mk +5 -0
index 422f27312d..2e80954741 100644
@@ -88,6 +88,11 @@ $(1)_KCONFIG_DEPENDENCIES = \
 	$(BR2_BISON_HOST_DEPENDENCY) \
 	$(BR2_FLEX_HOST_DEPENDENCY)
 
+# Starting with barebox v2020.09.0, the kconfig used calls the
+# cross-compiler to check its capabilities. So we need the
+# toolchain before we can call the configurators.
+$(1)_KCONFIG_DEPENDENCIES += toolchain
+
 ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
 define $(1)_BUILD_BAREBOXENV_CMDS
 	$$(TARGET_CC) $$(TARGET_CFLAGS) $$(TARGET_LDFLAGS) -o $$(@D)/bareboxenv \
Signature · 7 lines
2.17.1


_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 boot/barebox: kconfig needs the toolchain

In reply to Jules Maselbas
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jules" == Jules Maselbas via buildroot <[email protected]> writes:

In barebox v2020.09.0, kconfig has been updated to a newer version based on Linux 5.9-rc2. As in linux, kconfig can call the compiler to test its capabilities.

Committed to 2020.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard