All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain
@ 2020-12-08 10:11 Jules Maselbas
  2020-12-29 22:56 ` Yann E. MORIN
  2021-01-05 15:10 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Jules Maselbas @ 2020-12-08 10:11 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
---
 boot/barebox/barebox.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk
index 422f27312d..2e80954741 100644
--- a/boot/barebox/barebox.mk
+++ b/boot/barebox/barebox.mk
@@ -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 \
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain
  2020-12-08 10:11 [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain Jules Maselbas
@ 2020-12-29 22:56 ` Yann E. MORIN
  2021-01-05 15:10 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2020-12-29 22:56 UTC (permalink / raw)
  To: buildroot

Jules, All,

On 2020-12-08 11:11 +0100, Jules Maselbas via buildroot spake thusly:
> 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.
> 
> Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>

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.

> ---
>  boot/barebox/barebox.mk | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk
> index 422f27312d..2e80954741 100644
> --- a/boot/barebox/barebox.mk
> +++ b/boot/barebox/barebox.mk
> @@ -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 \
> -- 
> 2.17.1
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain
  2020-12-08 10:11 [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain Jules Maselbas
  2020-12-29 22:56 ` Yann E. MORIN
@ 2021-01-05 15:10 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-01-05 15:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Jules" == Jules Maselbas via buildroot <buildroot@busybox.net> 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.

 > Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>

Committed to 2020.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-05 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 10:11 [Buildroot] [PATCH] boot/barebox: kconfig needs the toolchain Jules Maselbas
2020-12-29 22:56 ` Yann E. MORIN
2021-01-05 15:10 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.