]> git.baikalelectronics.ru Git - uboot.git/commitdiff
command: Don't allow commands in SPL
authorSimon Glass <sjg@chromium.org>
Wed, 22 Feb 2023 16:34:25 +0000 (09:34 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 3 Mar 2023 14:49:03 +0000 (09:49 -0500)
At present we compile commands into U-Boot SPL even though they cannot
be used. This wastes space. Adjust the condition to avoid this.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/command.h

index 0db489806247b40119c1ec9a33cad38848dbc372..1b018cb98e775fc9381bd2c24ffa511e9794bd6b 100644 (file)
@@ -376,7 +376,7 @@ int cmd_source_script(ulong addr, const char *fit_uname, const char *confname);
        U_BOOT_SUBCMDS_DO_CMD(_cmdname)                                 \
        U_BOOT_SUBCMDS_COMPLETE(_cmdname)
 
-#ifdef CONFIG_CMDLINE
+#if CONFIG_IS_ENABLED(CMDLINE)
 #define U_BOOT_CMDREP_MKENT_COMPLETE(_name, _maxargs, _cmd_rep,                \
                                     _usage, _help, _comp)              \
                { #_name, _maxargs, _cmd_rep, cmd_discard_repeatable,   \