[Buildroot] [RFC 2/2] Config.in: move toolchain menu before build options

Yann E. MORIN yann.morin.1998 at free.fr
Thu Nov 4 20:46:36 UTC 2021


Arnout, All,

On 2021-10-06 22:41 +0200, Arnout Vandecappelle (Essensium/Mind) spake thusly:
> Many of the build options depend on the toolchain configuration. In
> addition, it's pretty logical that you select first target architecture,
> then the toolchain, and only then things like debug and pic/pie.
> Therefore, move the "Toolchain" menu before the "Build options" menu
> instead of after.

I think a much better solution would be to move the toolchain-related
build options to the "Toolchain" menu, and keep in the "Build options"
menu focused on the actual generic build "infra" (arg, I can't find a
proper word...). Parallel jobs, download tools, patch directories et al.
really are related to the build infrastructure, while static, -Os et al.
are more about the toolchain "configuration".

Regards,
Yann E. MORIN.

> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
> ---
>  Config.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Config.in b/Config.in
> index 8ed11c994d..efdf397c01 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -87,6 +87,8 @@ config BR2_NEEDS_HOST_GCC_PLUGIN_SUPPORT
>  
>  source "arch/Config.in"
>  
> +source "toolchain/Config.in"
> +
>  menu "Build options"
>  
>  menu "Commands"
> @@ -908,8 +910,6 @@ comment "Fortify Source needs a glibc toolchain and optimization"
>  	depends on (!BR2_TOOLCHAIN_USES_GLIBC || BR2_OPTIMIZE_0)
>  endmenu
>  
> -source "toolchain/Config.in"
> -
>  source "system/Config.in"
>  
>  source "linux/Config.in"
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/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.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list