diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-05-22 14:13:36 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-05-22 15:37:11 +0100 |
commit | 95b8338f0d4674b9f8bb51adf6886212d2b97e4b (patch) | |
tree | b436616626e4126c1aaa35db5e99eca015c6032f /src/config | |
parent | 28184b7c22ca2297bd5c0ad9d333bc8620d38915 (diff) | |
download | ipxe-95b8338f0d4674b9f8bb51adf6886212d2b97e4b.tar.gz |
[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.c | 3 | ||||
-rw-r--r-- | src/config/defaults/efi.h | 1 | ||||
-rw-r--r-- | src/config/general.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index a81866132..40f9c72c1 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 8e53b9ab6..998bdcc16 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 e75a2affd..2a371d0e6 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 |