]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cmd: fitupd: move config check to Kconfig
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 26 May 2020 16:34:15 +0000 (18:34 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 2 Jun 2020 21:27:04 +0000 (17:27 -0400)
Configuration checks should not be in the C files but in the Kconfig files.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig
cmd/fitupd.c

index 153864c58768246dcf17a20db0698587cf7db1b1..192b3b262f1a5c65fb4b3dfe272b95d62860f49f 100644 (file)
@@ -491,6 +491,7 @@ config CMD_SPL_WRITE_SIZE
 
 config CMD_FITUPD
        bool "fitImage update command"
+       depends on UPDATE_TFTP
        help
          Implements the 'fitupd' command, which allows to automatically
          store software updates present on a TFTP server in NOR Flash
index f6270d9c15b4b6761e2dd4d93cb29fa58c3a9a01..0f490c58fc8cbe81a963247d13826d0aeafd4217 100644 (file)
@@ -8,10 +8,6 @@
 #include <command.h>
 #include <net.h>
 
-#if !defined(CONFIG_UPDATE_TFTP)
-#error "CONFIG_UPDATE_TFTP required"
-#endif
-
 static int do_fitupd(struct cmd_tbl *cmdtp, int flag, int argc,
                     char *const argv[])
 {