summaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2024-01-17 13:39:44 +0900
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-17 08:40:25 +0100
commit467979b672be432b9f7904f6eefb3a05872855bb (patch)
tree1069654d930e9822df8127dd7a3dd6b48c506bc8 /fs/fs.c
parent593607c5814e399057e044343248fdaa77ef2238 (diff)
downloadu-boot-467979b672be432b9f7904f6eefb3a05872855bb.tar.gz
u-boot-467979b672be432b9f7904f6eefb3a05872855bb.tar.bz2
u-boot-467979b672be432b9f7904f6eefb3a05872855bb.zip
fs: remove explicit efi configuration dependency
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 <takahiro.akashi@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/fs.c b/fs/fs.c
index f1a0b70d1d..acf465bdd8 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -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) {