summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-15 19:02:50 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-20 08:09:34 +0100
commitff2f532fadd8f5238cc1ac2ae4ab075703bcc313 (patch)
treea711e39d420d3251d05520211206d1069b037d2c /include
parent2363effb7a689de66634ba325e57c2d6fc12f4e9 (diff)
downloadu-boot-ff2f532fadd8f5238cc1ac2ae4ab075703bcc313.tar.gz
u-boot-ff2f532fadd8f5238cc1ac2ae4ab075703bcc313.tar.xz
u-boot-ff2f532fadd8f5238cc1ac2ae4ab075703bcc313.zip
efi_loader: make the UEFI boot manager configurable
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/config_distro_bootcmd.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index c9862260a3..2627c2a6a5 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -123,14 +123,20 @@
#endif
#endif
-
-#define BOOTENV_SHARED_EFI \
+#ifdef CONFIG_CMD_BOOTEFI_BOOTMGR
+#define BOOTENV_EFI_BOOTMGR \
"boot_efi_bootmgr=" \
"if fdt addr ${fdt_addr_r}; then " \
"bootefi bootmgr ${fdt_addr_r};" \
"else " \
"bootefi bootmgr;" \
- "fi\0" \
+ "fi\0"
+#else
+#define BOOTENV_EFI_BOOTMGR
+#endif
+
+#define BOOTENV_SHARED_EFI \
+ BOOTENV_EFI_BOOTMGR \
\
"boot_efi_binary=" \
"load ${devtype} ${devnum}:${distro_bootpart} " \