[PATCH 08/19] commands: move CMD_MIPS_CPUINFO to commands/Kconfig

Antony Pavlov antonynpavlov at gmail.com
Tue May 13 04:26:16 PDT 2014


On Tue, 13 May 2014 10:28:48 +0200
Holger Schurig <holgerschurig at gmail.com> wrote:

Can we use

  1. consolidated CMD_CPUINFO option which is selectable on MIPS || ARM;
  2. CMD_ARM_CPUINFO option which depends on ARM & CMD_CPUINFO;
  3. CMD_MIPS_CPUINFO option which depends on MIPS & CMD_CPUINFO.


> * this places the command into the "Information commands"
>   section of Kconfig
> 
> Signed-off-by: Holger Schurig <holgerschurig at gmail.com>
> ---
>  arch/mips/Kconfig |    7 -------
>  commands/Kconfig  |    8 ++++++++
>  2 files changed, 8 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 9a240b7..6ce7fff 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -274,13 +274,6 @@ endchoice
>  
>  menu "MIPS specific settings"
>  
> -config CMD_MIPS_CPUINFO
> -	bool "cpuinfo command"
> -	default y
> -	help
> -	  Say yes here to get a cpuinfo command to show some
> -	  information about the cpu model.
> -
>  config HAS_NMON
>  	bool
>  
> diff --git a/commands/Kconfig b/commands/Kconfig
> index 9789af4..db091c4 100644
> --- a/commands/Kconfig
> +++ b/commands/Kconfig
> @@ -46,6 +46,14 @@ config CMD_ARM_CPUINFO
>  	  D-cache: 8192 bytes (linelen = 8)
>  	  Control register: M C W P D L I V RR DT IT U XP
>  
> +config CMD_MIPS_CPUINFO
> +	bool "cpuinfo command"
> +	default y
> +	depends on MIPS
> +	help
> +	  Say yes here to get a cpuinfo command to show some
> +	  information about the cpu model.
> +
>  config CMD_DEVINFO
>  	tristate
>  	default y
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list