Skip to content

Commit

Permalink
fs: remove explicit efi configuration dependency
Browse files Browse the repository at this point in the history
Now it is clear that the feature actually depends on efi interfaces,
not "bootefi" command. efi_set_bootdev() will automatically be nullified
if necessary efi component is disabled.

Signed-off-by: AKASHI Takahiro <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
AKASHI Takahiro authored and xypron committed Jan 17, 2024
1 parent 593607c commit 467979b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,9 @@ int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
return 1;
}

if (IS_ENABLED(CONFIG_CMD_BOOTEFI))
efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "",
(argc > 4) ? argv[4] : "", map_sysmem(addr, 0),
len_read);
efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "",
(argc > 4) ? argv[4] : "", map_sysmem(addr, 0),
len_read);

printf("%llu bytes read in %lu ms", len_read, time);
if (time > 0) {
Expand Down

0 comments on commit 467979b

Please sign in to comment.