diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-16 06:38:58 +0300 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-17 12:12:26 +0300 |
commit | 5345700d2af425a8c5a36c078db5d71bf31280c7 (patch) | |
tree | 6eee64ed67989449b2e3d0a1c7dffff085926e19 /arch/x86/lib/bios.c | |
parent | d424553675e93495f346ea7b24beb8c3dd750c67 (diff) | |
download | u-boot-5345700d2af425a8c5a36c078db5d71bf31280c7.tar.xz |
x86: Allow video-BIOS code to be built for SPL
With qemu-x86_64 we need to run the video BIOS while in 32-bit mode, i.e.
SPL. Add a Kconfig option for this, adjust the Makefile rules and use
CONFIG_IS_ENABLED() where needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/bios.c')
-rw-r--r-- | arch/x86/lib/bios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/bios.c b/arch/x86/lib/bios.c index 8cc686fd14..e29cae78e5 100644 --- a/arch/x86/lib/bios.c +++ b/arch/x86/lib/bios.c @@ -23,7 +23,7 @@ static int (*int_handler[256])(void); /* to have a common register file for interrupt handlers */ -#ifndef CONFIG_BIOSEMU +#if !CONFIG_IS_ENABLED(BIOSEMU) X86EMU_sysEnv _X86EMU_env; #endif |