|
@@ -116,8 +116,6 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
|
|
|
if (sys_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
|
|
|
goto fail;
|
|
|
|
|
|
- pr_efi(sys_table, "Booting Linux Kernel...\n");
|
|
|
-
|
|
|
status = check_platform_features(sys_table);
|
|
|
if (status != EFI_SUCCESS)
|
|
|
goto fail;
|
|
@@ -151,6 +149,16 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
|
|
|
goto fail;
|
|
|
}
|
|
|
|
|
|
+ if (IS_ENABLED(CONFIG_CMDLINE_EXTEND) ||
|
|
|
+ IS_ENABLED(CONFIG_CMDLINE_FORCE) ||
|
|
|
+ cmdline_size == 0)
|
|
|
+ efi_parse_options(CONFIG_CMDLINE);
|
|
|
+
|
|
|
+ if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && cmdline_size > 0)
|
|
|
+ efi_parse_options(cmdline_ptr);
|
|
|
+
|
|
|
+ pr_efi(sys_table, "Booting Linux Kernel...\n");
|
|
|
+
|
|
|
si = setup_graphics(sys_table);
|
|
|
|
|
|
status = handle_kernel_image(sys_table, image_addr, &image_size,
|
|
@@ -162,14 +170,6 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
|
|
|
goto fail_free_cmdline;
|
|
|
}
|
|
|
|
|
|
- if (IS_ENABLED(CONFIG_CMDLINE_EXTEND) ||
|
|
|
- IS_ENABLED(CONFIG_CMDLINE_FORCE) ||
|
|
|
- cmdline_size == 0)
|
|
|
- efi_parse_options(CONFIG_CMDLINE);
|
|
|
-
|
|
|
- if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && cmdline_size > 0)
|
|
|
- efi_parse_options(cmdline_ptr);
|
|
|
-
|
|
|
secure_boot = efi_get_secureboot(sys_table);
|
|
|
|
|
|
/*
|