[Buildroot] [PATCH RFC 4/5] arch/Config.in: add BR2_SHOW_SECONDARY_TARGET_OPTIONS

Arnout Vandecappelle arnout at rnout.be
Tue Mar 3 20:14:08 UTC 2026



On 08/02/2026 15:36, Julien Olivain wrote:
> Suggested-by: Arnout Vandecappelle <arnout at rnout.be>
> Signed-off-by: Julien Olivain <ju.o at free.fr>
> ---
>   arch/Config.in | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
> 
> diff --git a/arch/Config.in b/arch/Config.in
> index bdfc2b092c..e6b4fd040e 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -15,6 +15,27 @@ config BR2_USE_MMU
>   config BR2_ARCH_HAS_FDPIC_SUPPORT
>   	bool
>   
> +config BR2_SHOW_SECONDARY_TARGET_OPTIONS
> +	bool "Show secondary target options"
> +	default y
> +	depends on BR2_HIDE_SECONDARY_TARGET_OPTIONS != "y"

  Is it actually useful to have this as a user-visible option? I would simply 
use the environment option directly (depends on !BR2_HIDE_SECONDARY_TARGET_OPTIONS).

  Regards,
  Arnout

> +	help
> +	  Show secondary target options.
> +
> +	  When selected, this option shows all target options
> +	  available in Buildroot.
> +
> +	  Unselecting this option hides less common target CPU
> +	  architectures, architecture variants, CPUs or CPU options.
> +
> +	  This is primarily intended for random configuration
> +	  generation used in autobuilders. Using the command:
> +
> +	  BR2_HIDE_SECONDARY_TARGET_OPTIONS=y make randconfig
> +
> +	  generates a random configuration only using primary target
> +	  options.
> +
>   choice
>   	prompt "Target Architecture"
>   	default BR2_i386



More information about the buildroot mailing list