[PATCH 1/1] efi_loader: provide valid PXE architecture on sandbox
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sat Nov 9 11:31:41 CET 2024
Before this patch the sandbox uses 0xffffffea as PXE architecture.
=> efidebug defaults
Default boot path: EFI\BOOT\BOOTSBOX.EFI
PXE arch: 0xffffffea
With this patch it uses the PXE architecture that matches the host.
This allows us to use bootmeth EFI on the sandbox to load an EFI binary.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
lib/efi_loader/efi_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
index bf96f61d3d0..14049378930 100644
--- a/lib/efi_loader/efi_helper.c
+++ b/lib/efi_loader/efi_helper.c
@@ -75,7 +75,7 @@ const char *efi_get_basename(void)
int efi_get_pxe_arch(void)
{
- if (efi_use_host_arch())
+ if (IS_ENABLED(CONFIG_SANDBOX))
return HOST_PXE_ARCH;
/* http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml */
--
2.45.2
More information about the U-Boot
mailing list