From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
Nikhil M Jain <n-jain1@ti.com>, Bin Meng <bmeng.cn@gmail.com>,
Simon Glass <sjg@chromium.org>
Subject: [PATCH v3 03/43] bios_emulator: Add Kconfig and adjust Makefile for SPL
Date: Thu, 4 May 2023 16:57:49 -0600 [thread overview]
Message-ID: <20230504165823.v3.3.Ibd4b367f1dea522102a3a0c89b4264c41f1627eb@changeid> (raw)
In-Reply-To: <20230504225829.2537050-1-sjg@chromium.org>
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>
---
(no changes since v1)
board/google/Kconfig | 7 -------
drivers/Kconfig | 2 ++
drivers/Makefile | 2 +-
drivers/bios_emulator/Kconfig | 10 ++++++++++
4 files changed, 13 insertions(+), 8 deletions(-)
create mode 100644 drivers/bios_emulator/Kconfig
diff --git a/board/google/Kconfig b/board/google/Kconfig
index a0f1a609764..e4f9b5b68aa 100644
--- a/board/google/Kconfig
+++ b/board/google/Kconfig
@@ -4,13 +4,6 @@
if VENDOR_GOOGLE
-config BIOSEMU
- bool
- select X86EMU_RAW_IO
-
-config X86EMU_RAW_IO
- bool
-
choice
prompt "Mainboard model"
optional
diff --git a/drivers/Kconfig b/drivers/Kconfig
index 75937fbb6d9..a25f6ae02fd 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -10,6 +10,8 @@ source "drivers/ata/Kconfig"
source "drivers/axi/Kconfig"
+source "drivers/bios_emulator/Kconfig"
+
source "drivers/bus/Kconfig"
source "drivers/block/Kconfig"
diff --git a/drivers/Makefile b/drivers/Makefile
index 29be78a3f28..c70466dbcbe 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
+obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
@@ -79,7 +80,6 @@ ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
obj-y += adc/
obj-y += ata/
obj-$(CONFIG_DM_DEMO) += demo/
-obj-$(CONFIG_BIOSEMU) += bios_emulator/
obj-y += block/
obj-y += cache/
obj-$(CONFIG_CPU) += cpu/
diff --git a/drivers/bios_emulator/Kconfig b/drivers/bios_emulator/Kconfig
new file mode 100644
index 00000000000..3660576772d
--- /dev/null
+++ b/drivers/bios_emulator/Kconfig
@@ -0,0 +1,10 @@
+config BIOSEMU
+ bool
+ select X86EMU_RAW_IO
+
+config SPL_BIOSEMU
+ bool
+ select X86EMU_RAW_IO
+
+config X86EMU_RAW_IO
+ bool
--
2.40.1.521.gf1e218fcd8-goog
next prev parent reply other threads:[~2023-05-04 22:59 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 22:57 [PATCH v3 00/43] x86: Use qemu-x86_64 to boot EFI installers Simon Glass
2023-05-04 22:57 ` [PATCH v3 01/43] x86: Allow listing MTRRs in SPL Simon Glass
2023-05-04 22:57 ` [PATCH v3 02/43] x86: mtrr: Add documentation Simon Glass
2023-05-04 22:57 ` Simon Glass [this message]
2023-05-04 22:57 ` [PATCH v3 04/43] bios_emulator: Drop VIDEO_IO_OFFSET Simon Glass
2023-05-04 22:57 ` [PATCH v3 05/43] x86: Tidy up EFI code in interrupt_init() Simon Glass
2023-05-04 22:57 ` [PATCH v3 06/43] x86: Add a comment for board_init_f_r_trampoline() Simon Glass
2023-05-04 22:57 ` [PATCH v3 07/43] x86: Show the CPU physical address size with bdinfo Simon Glass
2023-05-04 22:57 ` [PATCH v3 08/43] x86: Correct get_sp() implementation for 64-bit Simon Glass
2023-05-04 22:57 ` [PATCH v3 09/43] x86: Show an error when a BIOS exception occurs Simon Glass
2023-05-04 22:57 ` [PATCH v3 10/43] acpi: Add a comment to set the acpi tables Simon Glass
2023-05-04 22:57 ` [PATCH v3 11/43] bdinfo: Show the RAM top and approximate stack pointer Simon Glass
2023-05-05 7:49 ` [EXTERNAL] " Nikhil M Jain
2023-05-04 22:57 ` [PATCH v3 12/43] part: Allow setting the partition-table type Simon Glass
2023-05-04 22:57 ` [PATCH v3 13/43] qfw: Show the file address if available Simon Glass
2023-05-04 22:58 ` [PATCH v3 14/43] log: Tidy up an ambiguous comment Simon Glass
2023-05-04 22:58 ` [PATCH v3 15/43] video: Allow building video drivers for SPL Simon Glass
2023-05-08 5:42 ` [EXTERNAL] " Nikhil M Jain
2023-05-04 22:58 ` [PATCH v3 16/43] qfw: Set the address of the ACPI tables Simon Glass
2023-05-04 22:58 ` [PATCH v3 17/43] efi: Show all known UUIDs with CONFIG_CMD_EFIDEBUG Simon Glass
2023-05-04 22:58 ` [PATCH v3 18/43] x86: Improve the trampoline in 64-bit mode Simon Glass
2023-05-04 22:58 ` [PATCH v3 19/43] Show the malloc base with the bdinfo command Simon Glass
2023-05-05 7:50 ` [EXTERNAL] " Nikhil M Jain
2023-05-04 22:58 ` [PATCH v3 20/43] nvme: Provide more useful debugging messages Simon Glass
2023-05-04 22:58 ` [PATCH v3 21/43] pci: Support autoconfig in SPL Simon Glass
2023-05-04 22:58 ` [PATCH v3 22/43] pci: Allow the video BIOS to work in SPL with QEMU Simon Glass
2023-05-04 22:58 ` [PATCH v3 23/43] pci: Tidy up logging and reporting for video BIOS Simon Glass
2023-05-04 22:58 ` [PATCH v3 24/43] x86: Allow video-BIOS code to be built for SPL Simon Glass
2023-05-04 22:58 ` [PATCH v3 25/43] x86: Pass video settings from SPL to U-Boot proper Simon Glass
2023-05-05 4:27 ` [EXTERNAL] " Nikhil M Jain
2023-05-04 22:58 ` [PATCH v3 26/43] x86: Init video in SPL if enabled Simon Glass
2023-05-04 22:58 ` [PATCH v3 27/43] pci: Adjust video BIOS debugging to be SPL-friendly Simon Glass
2023-05-04 22:58 ` [PATCH v3 28/43] pci: Mask the ROM address in case it is already enabled Simon Glass
2023-05-04 22:58 ` [PATCH v3 29/43] x86: Enable display for QEMU 64-bit Simon Glass
2023-05-04 22:58 ` [PATCH v3 30/43] x86: Allow logging to be used in SPL reliably Simon Glass
2023-05-04 22:58 ` [PATCH v3 31/43] fs: fat: Shrink the size of a few strings Simon Glass
2023-05-04 22:58 ` [PATCH v3 32/43] fs: fat: Support reading from a larger block size Simon Glass
2023-05-04 22:58 ` [PATCH v3 33/43] x86: Enable useful options for qemu-86_64 Simon Glass
2023-05-04 22:58 ` [PATCH v3 34/43] x86: Refactor table-writing code a litlle Simon Glass
2023-05-04 22:58 ` [PATCH v3 35/43] x86: Record the start and end of the tables Simon Glass
2023-05-04 22:58 ` [PATCH v3 36/43] x86: Show the number of physical address bits Simon Glass
2023-05-04 22:58 ` [PATCH v3 37/43] x86: Convert some debug statements to use logging Simon Glass
2023-05-04 22:58 ` [PATCH v3 38/43] x86: link: Support Micron memory Simon Glass
2023-05-04 22:58 ` [PATCH v3 39/43] x86: Make sure that the LPC is active before SDRAM init Simon Glass
2023-05-04 22:58 ` [PATCH v3 40/43] log: Support outputing function names in SPL Simon Glass
2023-05-04 22:58 ` [PATCH v3 41/43] sandbox: Correct header order in board file Simon Glass
2023-05-04 22:58 ` [PATCH v3 42/43] sandbox: Install ACPI tables on startup Simon Glass
2023-05-04 22:58 ` [PATCH v3 43/43] efi: Use the installed ACPI tables Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230504165823.v3.3.Ibd4b367f1dea522102a3a0c89b4264c41f1627eb@changeid \
--to=sjg@chromium.org \
--cc=bmeng.cn@gmail.com \
--cc=n-jain1@ti.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).