summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-22 09:34:25 -0700
committerTom Rini <trini@konsulko.com>2023-03-03 09:49:03 -0500
commitd99e6f78dedd473771d6dee1007a05b8574d5b5c (patch)
tree2fd21ee135868b17f5686b799330747b4b5aa25c /include/command.h
parent9c097f8139d0c6bd510c7b83dd175f693c62e85c (diff)
downloadu-boot-d99e6f78dedd473771d6dee1007a05b8574d5b5c.tar.gz
command: Don't allow commands in SPL
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>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h
index 0db4898062..1b018cb98e 100644
--- a/include/command.h
+++ b/include/command.h
@@ -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, \