kconfig: create board selection structure

Hopefully x86 QEMU is neutral enough to be the default choice.

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@43 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Segher Boessenkool 2006-11-10 14:14:25 +00:00
commit f1b41a6050
4 changed files with 61 additions and 17 deletions

View file

@ -5,19 +5,21 @@
mainmenu "LinuxBIOS Configuration"
source mainboard/Kconfig
config BOOTFLASH
bool
default y
help
Build the BOOTFLASH area. This includes all the reset vector,
Cache-As-Ram (CAR) code, early device setup, and the code that
parses the "file system" in the non-BOOTFLASH area.
Build the BOOTFLASH area. This includes all the reset vector,
Cache-As-Ram (CAR) code, early device setup, and the code that
parses the "file system" in the non-BOOTFLASH area.
config BIOS
bool
default y
help
Build the rest of the BIOS. This includes memory init, device init, PCI init, and so on.
Build the rest of the BIOS. This includes memory init, device init, PCI init, and so on.
config UNCOMPRESSORS
bool

22
src/mainboard/Kconfig Normal file
View file

@ -0,0 +1,22 @@
choice
prompt "Board vendor"
default EMULATION
config EMULATION
bool "Emulated systems"
help
Select this option for various system emulators, such as QEMU.
config FROOBATZ
bool "Froobatz Technologies"
help
Select this option for boards manufactured by Froobatz technologies.
config CRAY
bool "Cray"
help
Select this option if you have too much money and time.
endchoice
source "mainboard/emulation/Kconfig"

View file

@ -0,0 +1,20 @@
choice
prompt "Board model"
depends on EMULATION
config EMULATION_QEMU_X86
bool "x86 QEMU"
help
x86 QEMU bla bla bla
config EMULATION_QEMU_POWERPC
bool "PowerPC QEMU"
help
PowerPC QEMU bla bla bla
config EMULATION_C64
bool "C64 emulators"
help
bla bla bla
endchoice

View file

@ -5,23 +5,23 @@
PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
xconfig: $(obj)/qconf
$< mainboard/$(MAINBOARD)/Kconfig
$< Kconfig
gconfig: $(obj)/gconf
$< mainboard/$(MAINBOARD)/Kconfig
$< Kconfig
menuconfig: $(obj)/mconf
$(Q)$(MAKE) $(build)=scripts/kconfig/lxdialog
$< mainboard/$(MAINBOARD)/Kconfig
$< Kconfig
config: $(obj)/conf
$< mainboard/$(MAINBOARD)/Kconfig
$< Kconfig
oldconfig: $(obj)/conf
$< -o mainboard/$(MAINBOARD)/Kconfig
$< -o Kconfig
silentoldconfig: $(obj)/conf
$< -s mainboard/$(MAINBOARD)/Kconfig
$< -s Kconfig
update-po-config: $(obj)/kxgettext
xgettext --default-domain=linux \
@ -45,27 +45,27 @@ update-po-config: $(obj)/kxgettext
PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig
randconfig: $(obj)/conf
$< -r mainboard/$(MAINBOARD)/Kconfig
$< -r Kconfig
allyesconfig: $(obj)/conf
$< -y mainboard/$(MAINBOARD)/Kconfig
$< -y Kconfig
allnoconfig: $(obj)/conf
$< -n mainboard/$(MAINBOARD)/Kconfig
$< -n Kconfig
allmodconfig: $(obj)/conf
$< -m mainboard/$(MAINBOARD)/Kconfig
$< -m Kconfig
defconfig: $(obj)/conf
ifeq ($(KBUILD_DEFCONFIG),)
$< -d mainboard/$(MAINBOARD)/Kconfig
$< -d Kconfig
else
@echo *** Default configuration is based on '$(KBUILD_DEFCONFIG)'
$(Q)$< -D arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) mainboard/$(MAINBOARD)/Kconfig
$(Q)$< -D arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) Kconfig
endif
%_defconfig: $(obj)/conf
$(Q)$< -D arch/$(ARCH)/configs/$@ mainboard/$(MAINBOARD)/Kconfig
$(Q)$< -D arch/$(ARCH)/configs/$@ Kconfig
# Help text used by make help
help: