opengnsys_ipxe/src/hci
Michael Brown 6a7f560e60 [efi] Implement "shim" as a dummy command on non-EFI platforms
The "shim" command will skip downloading the shim binary (and is
therefore a conditional no-op) if there is already a selected EFI
image that can be executed directly via LoadImage()/StartImage().
This allows the same iPXE script to be used with Secure Boot either
enabled or disabled.

Generalise this further to provide a dummy "shim" command that is an
unconditional no-op on non-EFI platforms.  This then allows the same
iPXE script to be used for BIOS, EFI with Secure Boot disabled, or EFI
with Secure Boot enabled.

The same effect could be achieved by using "iseq ${platform} efi"
within the script, but this would complicate end-user documentation.

To minimise the code size impact, the dummy "shim" command is a pure
no-op that does not call parse_options() and so will ignore even
standardised arguments such as "--help".

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2023-05-24 10:20:31 +01:00
..
commands [efi] Implement "shim" as a dummy command on non-EFI platforms 2023-05-24 10:20:31 +01:00
keymap [console] Include mappings for AltGr-Shift-<key> 2022-02-16 15:31:47 +00:00
mucurses [mucurses] Avoid potential division by zero 2017-07-04 12:51:53 +01:00
tui [settings] Use generic jump scrolling abstraction 2015-03-03 03:51:08 +00:00
editstring.c [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 16:35:29 +00:00
jumpscroll.c [menu] Abstract out the generic concept of a jump scroller 2015-03-03 02:47:37 +00:00
linux_args.c [linux] Use host glibc system call wrappers 2021-02-28 23:28:23 +00:00
readline.c [readline] Extend maximum read line length to 1024 characters 2021-09-10 15:51:14 +01:00
shell.c [readline] Add an optional timeout to readline_history() 2021-04-23 12:27:57 +01:00
strerror.c [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 14:17:31 +00:00
wireless_errors.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00