[PATCH 07/16] efi: provide populate $efi.payload_default_path depending on arch
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Dec 11 12:29:58 PST 2025
To make it easily available to scripts, let's export the path as device
parameter.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/efi/efi-device.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c
index 1ddf01658ee9..e700e2b2e89b 100644
--- a/drivers/efi/efi-device.c
+++ b/drivers/efi/efi-device.c
@@ -432,6 +432,8 @@ static int efi_init_devices(void)
dev_add_param_bool_fixed(&efi_bus.dev, "secure_mode",
secure_boot & setup_mode);
dev_add_param_bool_fixed(&efi_bus.dev, "payload", true);
+ dev_add_param_fixed(&efi_bus.dev, "payload_default_path",
+ CONFIG_EFI_PAYLOAD_DEFAULT_PATH);
devinfo_add(&efi_bus.dev, efi_businfo);
@@ -444,6 +446,7 @@ static int efi_init_devices(void)
core_efi_initcall(efi_init_devices);
BAREBOX_MAGICVAR(efi.payload, "1 indicates that barebox was loaded as EFI payload");
+BAREBOX_MAGICVAR(efi.payload_default_path, "The arch-specific removable media path");
void efi_pause_devices(void)
{
--
2.47.3
More information about the barebox
mailing list