bios_emulator: Add Kconfig and adjust Makefile for SPL
The Kconfig for this is currently inside a particular board. Move it into the correct place and allow use in SPL, so that video can be used there if needed. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -4,13 +4,6 @@
|
|||||||
|
|
||||||
if VENDOR_GOOGLE
|
if VENDOR_GOOGLE
|
||||||
|
|
||||||
config BIOSEMU
|
|
||||||
bool
|
|
||||||
select X86EMU_RAW_IO
|
|
||||||
|
|
||||||
config X86EMU_RAW_IO
|
|
||||||
bool
|
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Mainboard model"
|
prompt "Mainboard model"
|
||||||
optional
|
optional
|
||||||
|
@@ -10,6 +10,8 @@ source "drivers/ata/Kconfig"
|
|||||||
|
|
||||||
source "drivers/axi/Kconfig"
|
source "drivers/axi/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/bios_emulator/Kconfig"
|
||||||
|
|
||||||
source "drivers/bus/Kconfig"
|
source "drivers/bus/Kconfig"
|
||||||
|
|
||||||
source "drivers/block/Kconfig"
|
source "drivers/block/Kconfig"
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
|
|
||||||
|
obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
|
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
|
||||||
@@ -80,7 +81,6 @@ ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
|||||||
obj-y += adc/
|
obj-y += adc/
|
||||||
obj-y += ata/
|
obj-y += ata/
|
||||||
obj-$(CONFIG_DM_DEMO) += demo/
|
obj-$(CONFIG_DM_DEMO) += demo/
|
||||||
obj-$(CONFIG_BIOSEMU) += bios_emulator/
|
|
||||||
obj-y += block/
|
obj-y += block/
|
||||||
obj-y += cache/
|
obj-y += cache/
|
||||||
obj-$(CONFIG_CPU) += cpu/
|
obj-$(CONFIG_CPU) += cpu/
|
||||||
|
10
drivers/bios_emulator/Kconfig
Normal file
10
drivers/bios_emulator/Kconfig
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
config BIOSEMU
|
||||||
|
bool
|
||||||
|
select X86EMU_RAW_IO
|
||||||
|
|
||||||
|
config SPL_BIOSEMU
|
||||||
|
bool
|
||||||
|
select X86EMU_RAW_IO
|
||||||
|
|
||||||
|
config X86EMU_RAW_IO
|
||||||
|
bool
|
Reference in New Issue
Block a user