mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
[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:
18
src/include/ipxe/efi/efi_cmdline.h
Normal file
18
src/include/ipxe/efi/efi_cmdline.h
Normal 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 */
|
||||
@@ -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 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user