Skip to content

Commit e346beb

Browse files
committed
efi: libstub: Always enable initrd command line loader and bump version
In preparation for setting a cross-architecture baseline for EFI boot support, remove the Kconfig option that permits the command line initrd loader to be disabled. Also, bump the minor version so that any image built with the new version can be identified as supporting this. Acked-by: Leif Lindholm <[email protected]> Reviewed-by: Daniel Kiper <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent a89474a commit e346beb

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

drivers/firmware/efi/Kconfig

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,6 @@ config EFI_ARMSTUB_DTB_LOADER
106106
functionality for bootloaders that do not have such support
107107
this option is necessary.
108108

109-
config EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER
110-
bool "Enable the command line initrd loader" if !X86
111-
depends on EFI_STUB && (EFI_GENERIC_STUB || X86)
112-
default y if X86
113-
help
114-
Select this config option to add support for the initrd= command
115-
line parameter, allowing an initrd to be loaded into memory that
116-
resides on a file system backed by an implementation of
117-
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.
118-
119-
This method has been superseded by the simpler LoadFile2 based
120-
initrd loading method, but the initrd= loader is retained as it
121-
can be used from the UEFI Shell or other generic loaders that
122-
don't implement the Linux specific LoadFile2 method.
123-
124109
config EFI_BOOTLOADER_CONTROL
125110
tristate "EFI Bootloader Control"
126111
select UCS2_STRING

drivers/firmware/efi/libstub/efi-stub-helper.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ efi_status_t efi_load_initrd_cmdline(efi_loaded_image_t *image,
538538
unsigned long soft_limit,
539539
unsigned long hard_limit)
540540
{
541-
if (!IS_ENABLED(CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER) ||
542-
(IS_ENABLED(CONFIG_X86) && image == NULL))
541+
if (image == NULL)
543542
return EFI_UNSUPPORTED;
544543

545544
return handle_cmdline_files(image, L"initrd=", sizeof(L"initrd=") - 2,

include/linux/pe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* handover_offset and xloadflags fields in the bootparams structure.
3030
*/
3131
#define LINUX_EFISTUB_MAJOR_VERSION 0x1
32-
#define LINUX_EFISTUB_MINOR_VERSION 0x0
32+
#define LINUX_EFISTUB_MINOR_VERSION 0x1
3333

3434
#define MZ_MAGIC 0x5a4d /* "MZ" */
3535

0 commit comments

Comments
 (0)