]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs: remove explicit efi configuration dependency
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 17 Jan 2024 04:39:44 +0000 (13:39 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 17 Jan 2024 07:40:25 +0000 (08:40 +0100)
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>
fs/fs.c

diff --git a/fs/fs.c b/fs/fs.c
index f1a0b70d1d57cd4428e6b3f78554a5456408afe1..acf465bdd807fc079d7363c6d9f8936ef4c606a3 100644 (file)
--- 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) {