[coreboot] [PATCH/RFC]Move SYSTEM_TYPE to Kconfig

Uwe Hermann uwe at hermann-uwe.de
Sat Nov 6 20:14:22 CET 2010


On Sat, Nov 06, 2010 at 07:43:32PM +0100, Patrick Georgi wrote:
> Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>

Yep, great idea + patch. If it survives abuild:

Acked-by: Uwe Hermann <uwe at hermann-uwe.de>


> Index: src/cpu/amd/Kconfig
> ===================================================================
> --- src/cpu/amd/Kconfig	(Revision 6029)
> +++ src/cpu/amd/Kconfig	(Arbeitskopie)
> @@ -20,3 +20,10 @@
>  source src/cpu/amd/model_lx/Kconfig
>  
>  source src/cpu/amd/sc520/Kconfig
> +



> +config SYSTEM_TYPE_AMD

Maybe add a short comment here (similar to the commit msg) so that people
who read the files know why this is done etc.


> +	int
> +	default 0 if SYSTEM_TYPE_UNSPECIFIED | SYSTEM_TYPE_ENTERPRISE_SERVER | SYSTEM_TYPE_SOHO_SERVER | SYSTEM_TYPE_PERFORMANCE_SERVER
> +	default 1 if SYSTEM_TYPE_DESKTOP | SYSTEM_TYPE_WORKSTATION
> +	default 2 if SYSTEM_TYPE_LAPTOP | SYSTEM_TYPE_APPLIANCE_PC
> +

> Index: src/mainboard/Kconfig
> ===================================================================
> --- src/mainboard/Kconfig	(Revision 6029)
> +++ src/mainboard/Kconfig	(Arbeitskopie)
> @@ -247,6 +247,50 @@
>  	default 0x200000 if COREBOOT_ROMSIZE_KB_2048
>  	default 0x400000 if COREBOOT_ROMSIZE_KB_4096
>  
> +choice
> +	prompt "System Type"
> +	default SYSTEM_TYPE_UNSPECIFIED
> +	help
> +	  Chipset configuration and OS behaviour can be tuned for several
> +          use cases.
> +
> +config SYSTEM_TYPE_UNSPECIFIED
> +	bool "Unspecified"

Maybe change
	bool "Unspecified"
to just
	bool
?

The choice should not be user-visible, right? So no string needs to be
supplied (the CONFIG_* name is self-describing already, too).

Ditto for the other SYSTEM_TYPE_* options.


Uwe.
-- 
http://hermann-uwe.de     | http://sigrok.org
http://randomprojects.org | http://unmaintained-free-software.org




More information about the coreboot mailing list