From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: chalianis1@gmail.com, Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 4/4] ARM64: configs: add multi_v8_efi_defconfig
Date: Wed, 30 Jul 2025 07:57:43 +0200 [thread overview]
Message-ID: <20250730055743.922932-4-a.fatoum@barebox.org> (raw)
In-Reply-To: <20250730055743.922932-1-a.fatoum@barebox.org>
We will want to have a efi_defconfig once all necessary components are
in place, but for now let's just add a config that extends
multi_v8_defconfig with an EFI stub.
To use, get QEMU_EFI.fd (e.g., from Debian qemu-efi-aarch64) and run:
qemu-system-aarch64 -kernel images/barebox-dt-2nd.img \
-bios QEMU_EFI.fd -machine virt,highmem=off -cpu cortex-a57 \
-m 1024M -nographic -serial mon:stdio -trace file=/dev/null
A labgrid YAML will follow once we can provide QEMU_EFI.fd there.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/arm/Makefile | 4 ++++
common/boards/configs/efi-payload.config | 13 +++++++++++++
2 files changed, 17 insertions(+)
create mode 100644 common/boards/configs/efi-payload.config
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index eb71c84f587a..8fa7f1dc80b7 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -8,6 +8,10 @@ am335x_mlo_sdmmc_defconfig:
am335x_mlo_rawflash_defconfig:
$(call merge_into_defconfig,am335x_mlo_defconfig,nomci)
+multi_v8_efi_defconfig:
+ $(call merge_into_defconfig,multi_v8_defconfig,efi-payload)
+generated_configs += multi_v8_efi_defconfig
+
KBUILD_CPPFLAGS += -D__ARM__ -fno-strict-aliasing
# Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
ifeq ($(CONFIG_CPU_64),y)
diff --git a/common/boards/configs/efi-payload.config b/common/boards/configs/efi-payload.config
new file mode 100644
index 000000000000..954910263a6f
--- /dev/null
+++ b/common/boards/configs/efi-payload.config
@@ -0,0 +1,13 @@
+CONFIG_COMPILE_TEST=y
+CONFIG_EFI_PAYLOAD=y
+CONFIG_FS_EFI=y
+CONFIG_FS_EFIVARFS=y
+CONFIG_DRIVER_SERIAL_EFI_STDIO=y
+CONFIG_EFI_BLK=y
+CONFIG_EFI_BLK_SEPARATE_USBDISK=y
+CONFIG_WATCHDOG_EFI=y
+CONFIG_HW_RANDOM_EFI=y
+CONFIG_I2C_EFI=y
+CONFIG_CLOCKSOURCE_EFI=y
+CONFIG_SERIAL_EFI_STDIO=y
+CONFIG_CMD_EFI_HANDLE_DUMP=y
--
2.39.5
next prev parent reply other threads:[~2025-07-30 5:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 5:57 [PATCH 1/4] scripts: Makefile.pic: define __NO_FORTIFY without value Ahmad Fatoum
2025-07-30 5:57 ` [PATCH 2/4] ARM64: configs: multi_v8: disable layerscape temporarily Ahmad Fatoum
2025-08-05 5:43 ` Sascha Hauer
2025-08-11 13:34 ` Ahmad Fatoum
2025-07-30 5:57 ` [PATCH 3/4] ARM: configs: multi: configure CONFIG_CONSOLE_ACTIVATE_ALL_FALLBACK Ahmad Fatoum
2025-07-30 5:57 ` Ahmad Fatoum [this message]
2025-08-11 13:34 ` [PATCH 1/4] scripts: Makefile.pic: define __NO_FORTIFY without value Sascha Hauer
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=20250730055743.922932-4-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
--cc=chalianis1@gmail.com \
/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