All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version
@ 2018-04-24 16:34 Yann E. MORIN
  2018-04-25  6:39 ` Petr Vorel
  2018-04-25 19:35 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Yann E. MORIN @ 2018-04-24 16:34 UTC (permalink / raw)
  To: buildroot

By default, the builsystem for uboot defaults to 'legacy', while the
default version is very well capable of using the 'kconfig' buildsystem
instead.

Having the 'legacy' buildsystem be the default in that case makes it
quite inconvenient for users: they would expect to be able to use e.g.
uboot-menuconfig et al. with the default uboot version.

Switch to using 'kconfig' when we use the latest version. Keep the
'legacy' as default for everything else.

Also, invert the 'legacy' and 'kconfig' entries in the choice: it is
nicer to have the recent and future-proodf entry first.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 boot/uboot/Config.in | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index b980745d1b..95c17e3986 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -6,20 +6,21 @@ config BR2_TARGET_UBOOT
 if BR2_TARGET_UBOOT
 choice
 	prompt "Build system"
+	default BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG if BR2_TARGET_UBOOT_LATEST_VERSION
 	default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
 
-config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
-	bool "Legacy"
-	help
-	  Select this option if you use an old U-Boot (older than
-	  2015.04), so that we use the old build system.
-
 config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
 	bool "Kconfig"
 	help
 	  Select this option if you use a recent U-Boot version (2015.04
 	  or newer), so that we use the Kconfig build system.
 
+config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
+	bool "Legacy"
+	help
+	  Select this option if you use an old U-Boot (older than
+	  2015.04), so that we use the old build system.
+
 endchoice
 
 if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
-- 
2.14.1

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

* [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version
  2018-04-24 16:34 [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version Yann E. MORIN
@ 2018-04-25  6:39 ` Petr Vorel
  2018-04-25  6:43   ` Yegor Yefremov
  2018-04-25 19:35 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2018-04-25  6:39 UTC (permalink / raw)
  To: buildroot

Hi Yann,

> By default, the builsystem for uboot defaults to 'legacy', while the
> default version is very well capable of using the 'kconfig' buildsystem
> instead.

> Having the 'legacy' buildsystem be the default in that case makes it
> quite inconvenient for users: they would expect to be able to use e.g.
> uboot-menuconfig et al. with the default uboot version.

> Switch to using 'kconfig' when we use the latest version. Keep the
> 'legacy' as default for everything else.

> Also, invert the 'legacy' and 'kconfig' entries in the choice: it is
> nicer to have the recent and future-proodf entry first.

> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Petr Vorel <petr.vorel@gmail.com>

Good idea :).

Kind regards,
Petr

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

* [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version
  2018-04-25  6:39 ` Petr Vorel
@ 2018-04-25  6:43   ` Yegor Yefremov
  0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2018-04-25  6:43 UTC (permalink / raw)
  To: buildroot

On Wed, Apr 25, 2018 at 8:39 AM, Petr Vorel <petr.vorel@gmail.com> wrote:
> Hi Yann,
>
>> By default, the builsystem for uboot defaults to 'legacy', while the
>> default version is very well capable of using the 'kconfig' buildsystem
>> instead.
>
>> Having the 'legacy' buildsystem be the default in that case makes it
>> quite inconvenient for users: they would expect to be able to use e.g.
>> uboot-menuconfig et al. with the default uboot version.
>
>> Switch to using 'kconfig' when we use the latest version. Keep the
>> 'legacy' as default for everything else.
>
>> Also, invert the 'legacy' and 'kconfig' entries in the choice: it is
>> nicer to have the recent and future-proodf entry first.
>
>> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Tested-by: Petr Vorel <petr.vorel@gmail.com>
>
> Good idea :).

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>

Yegor

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

* [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version
  2018-04-24 16:34 [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version Yann E. MORIN
  2018-04-25  6:39 ` Petr Vorel
@ 2018-04-25 19:35 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2018-04-25 19:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 24 Apr 2018 18:34:10 +0200, Yann E. MORIN wrote:
> By default, the builsystem for uboot defaults to 'legacy', while the
> default version is very well capable of using the 'kconfig' buildsystem
> instead.
> 
> Having the 'legacy' buildsystem be the default in that case makes it
> quite inconvenient for users: they would expect to be able to use e.g.
> uboot-menuconfig et al. with the default uboot version.
> 
> Switch to using 'kconfig' when we use the latest version. Keep the
> 'legacy' as default for everything else.
> 
> Also, invert the 'legacy' and 'kconfig' entries in the choice: it is
> nicer to have the recent and future-proodf entry first.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  boot/uboot/Config.in | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2018-04-25 19:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-24 16:34 [Buildroot] [PATCH] boot/uboot: default to kconfig buildsystem for latest version Yann E. MORIN
2018-04-25  6:39 ` Petr Vorel
2018-04-25  6:43   ` Yegor Yefremov
2018-04-25 19:35 ` Thomas Petazzoni

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.