File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
drivers/firmware/efi/libstub Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,6 @@ unsigned long efi_main(efi_handle_t handle,
680
680
unsigned long buffer_start , buffer_end ;
681
681
struct setup_header * hdr = & boot_params -> hdr ;
682
682
efi_status_t status ;
683
- unsigned long cmdline_paddr ;
684
683
685
684
efi_system_table = sys_table_arg ;
686
685
@@ -739,9 +738,14 @@ unsigned long efi_main(efi_handle_t handle,
739
738
image_offset = 0 ;
740
739
}
741
740
742
- cmdline_paddr = ((u64 )hdr -> cmd_line_ptr |
743
- ((u64 )boot_params -> ext_cmd_line_ptr << 32 ));
744
- efi_parse_options ((char * )cmdline_paddr );
741
+ #ifdef CONFIG_CMDLINE_BOOL
742
+ efi_parse_options (CONFIG_CMDLINE );
743
+ #endif
744
+ if (!IS_ENABLED (CONFIG_CMDLINE_OVERRIDE )) {
745
+ unsigned long cmdline_paddr = ((u64 )hdr -> cmd_line_ptr |
746
+ ((u64 )boot_params -> ext_cmd_line_ptr << 32 ));
747
+ efi_parse_options ((char * )cmdline_paddr );
748
+ }
745
749
746
750
/*
747
751
* At this point, an initrd may already have been loaded by the
You can’t perform that action at this time.
0 commit comments