[PATCH 09/10] MIPS: add draft cpuinfo command
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Jul 24 22:58:43 EDT 2011
On 23:22 Sun 24 Jul , Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
> arch/mips/Kconfig | 11 +++++++++++
> arch/mips/lib/Makefile | 3 +++
> arch/mips/lib/cpuinfo.c | 38 ++++++++++++++++++++++++++++++++++++++
> 3 files changed, 52 insertions(+), 0 deletions(-)
> create mode 100644 arch/mips/lib/cpuinfo.c
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 50d734a..8970470 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -208,6 +208,17 @@ config 64BIT
>
> 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.
> +
> +endmenu
> +
> source common/Kconfig
> source commands/Kconfig
> source net/Kconfig
> diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile
> index 67e4e8a..44fb360 100644
> --- a/arch/mips/lib/Makefile
> +++ b/arch/mips/lib/Makefile
> @@ -4,3 +4,6 @@ obj-y += lshrdi3.o
> obj-y += ashldi3.o
> obj-y += ashrdi3.o
> obj-y += memory.o
> +
> +#obj-$(CONFIG_CMD_MIPS_CPUINFO) += cpuinfo.o
> +obj-y += cpuinfo.o
??
Best Regards,
J.
More information about the barebox
mailing list