[efi] Accept a command line passed to an iPXE image via LoadOptions

Treat a command line passed to iPXE via UEFI LoadOptions as an image
to be registered at startup, as is already done for the .lkrn, .pxe,
and .exe BIOS images.

Originally-implemented-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2023-01-29 18:48:08 +00:00
parent b9be454010
commit 4bb521a8c4
4 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#ifndef _IPXE_EFI_CMDLINE_H
#define _IPXE_EFI_CMDLINE_H
/** @file
*
* EFI command line
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <wchar.h>
extern const wchar_t *efi_cmdline;
extern size_t efi_cmdline_len;
#endif /* _IPXE_EFI_CMDLINE_H */

View File

@@ -401,6 +401,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define ERRFILE_dynkeymap ( ERRFILE_OTHER | 0x00580000 )
#define ERRFILE_pci_cmd ( ERRFILE_OTHER | 0x00590000 )
#define ERRFILE_dhe ( ERRFILE_OTHER | 0x005a0000 )
#define ERRFILE_efi_cmdline ( ERRFILE_OTHER | 0x005b0000 )
/** @} */