Kconfig!
Works on Kontron, qemu, and serengeti. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> tested on abuild only. Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4534 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Ronald G. Minnich
parent
38cd29ebd7
commit
0588d19abe
25
src/mainboard/emulation/Kconfig
Normal file
25
src/mainboard/emulation/Kconfig
Normal file
@@ -0,0 +1,25 @@
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
depends on VENDOR_EMULATION
|
||||
|
||||
config BOARD_EMULATION_QEMU_X86
|
||||
bool "QEMU x86"
|
||||
select ARCH_X86
|
||||
select CPU_I586
|
||||
select SOUTHBRIDGE_INTEL_I82371EB
|
||||
select CPU_EMULATION_QEMU_X86
|
||||
select CONSOLE_SERIAL8250
|
||||
help
|
||||
x86 QEMU variant.
|
||||
|
||||
endchoice
|
||||
|
||||
config MAINBOARD_DIR
|
||||
string
|
||||
default emulation/qemu-x86
|
||||
depends on BOARD_EMULATION_QEMU_X86
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
default "QEMU-86"
|
||||
depends on BOARD_EMULATION_QEMU_X86
|
21
src/mainboard/emulation/qemu-x86/Makefile.inc
Normal file
21
src/mainboard/emulation/qemu-x86/Makefile.inc
Normal file
@@ -0,0 +1,21 @@
|
||||
initobj-y += crt0.o
|
||||
crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
|
||||
crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
|
||||
crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
|
||||
crt0-y += ../../../../src/arch/i386/lib/id.inc
|
||||
crt0-y += auto.inc
|
||||
|
||||
obj-y += mainboard.o
|
||||
|
||||
ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
|
||||
ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
|
||||
ldscript-y += ../../../../src/cpu/x86/32bit/entry32.lds
|
||||
ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
|
||||
ldscript-y += ../../../../src/arch/i386/lib/id.lds
|
||||
|
||||
ifdef POST_EVALUATION
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
|
||||
$(obj)/romcc -mcpu=i386 -O $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
|
||||
|
||||
endif
|
15
src/mainboard/emulation/qemu-x86/devicetree.cb
Normal file
15
src/mainboard/emulation/qemu-x86/devicetree.cb
Normal file
@@ -0,0 +1,15 @@
|
||||
chip cpu/emulation/qemu-x86
|
||||
device pci_domain 0 on
|
||||
device pci 0.0 on end
|
||||
|
||||
chip southbridge/intel/i82371eb # southbridge
|
||||
device pci 01.0 on end
|
||||
device pci 01.1 on end
|
||||
register "ide0_enable" = "1"
|
||||
register "ide1_enable" = "1"
|
||||
end
|
||||
|
||||
# register "com1" = "{1}"
|
||||
# register "com1" = "{1, 0, 0x3f8, 4}"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user