aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-05-22 14:13:36 +0100
committerMichael Brown <mcb30@ipxe.org>2023-05-22 15:37:11 +0100
commit95b8338f0d4674b9f8bb51adf6886212d2b97e4b (patch)
treeb436616626e4126c1aaa35db5e99eca015c6032f /src/config
parent28184b7c22ca2297bd5c0ad9d333bc8620d38915 (diff)
downloadipxe-95b8338f0d4674b9f8bb51adf6886212d2b97e4b.zip
ipxe-95b8338f0d4674b9f8bb51adf6886212d2b97e4b.tar.gz
ipxe-95b8338f0d4674b9f8bb51adf6886212d2b97e4b.tar.bz2
[efi] Add "shim" command
Allow a shim to be used to facilitate booting a kernel using a script such as: kernel /images/vmlinuz console=ttyS0,115200n8 initrd /images/initrd.img shim /images/shimx64.efi boot Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.c3
-rw-r--r--src/config/defaults/efi.h1
-rw-r--r--src/config/general.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index a818661..40f9c72 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -290,6 +290,9 @@ REQUIRE_OBJECT ( cert_cmd );
#ifdef IMAGE_MEM_CMD
REQUIRE_OBJECT ( image_mem_cmd );
#endif
+#ifdef SHIM_CMD
+REQUIRE_OBJECT ( shim_cmd );
+#endif
/*
* Drag in miscellaneous objects
diff --git a/src/config/defaults/efi.h b/src/config/defaults/efi.h
index 8e53b9a..998bdcc 100644
--- a/src/config/defaults/efi.h
+++ b/src/config/defaults/efi.h
@@ -47,6 +47,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define USB_BLOCK /* USB block devices */
#define REBOOT_CMD /* Reboot command */
+#define SHIM_CMD /* EFI shim command */
#if defined ( __i386__ ) || defined ( __x86_64__ )
#define IOAPI_X86
diff --git a/src/config/general.h b/src/config/general.h
index e75a2af..2a371d0 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -160,6 +160,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
//#define CERT_CMD /* Certificate management commands */
//#define IMAGE_MEM_CMD /* Read memory command */
#define IMAGE_ARCHIVE_CMD /* Archive image management commands */
+//#define SHIM_CMD /* EFI shim command */
/*
* ROM-specific options