]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/fs: fix build if CMD_BOOTEFI is not set
authorGervais, Francois <FGervais@distech-controls.com>
Sat, 16 Feb 2019 21:10:32 +0000 (21:10 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 19 Feb 2019 21:58:23 +0000 (16:58 -0500)
Fixes:
cmd/fs.c:29: undefined reference to `efi_set_bootdev'

Signed-off-by: Francois Gervais <fgervais@distech-controls.com>
cmd/fs.c

index 8064a1c84dfae81088225f2f7473709009aa6070..94467671be846cacfc123d676871d196f2a0dfa6 100644 (file)
--- a/cmd/fs.c
+++ b/cmd/fs.c
@@ -26,8 +26,10 @@ U_BOOT_CMD(
 static int do_load_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
                                char * const argv[])
 {
+#ifdef CONFIG_CMD_BOOTEFI
        efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "",
                        (argc > 4) ? argv[4] : "");
+#endif
        return do_load(cmdtp, flag, argc, argv, FS_TYPE_ANY);
 }