summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-13 19:07:34 -0600
committerTom Rini <trini@konsulko.com>2016-03-22 12:16:11 -0400
commit1872c67359ca7940e7442384288279811a9019b2 (patch)
tree8a71a609b2b07cf460b9ffac3d94e101a7c17526 /common
parentfb24112c19f1544129af938bb415b04241482f07 (diff)
Allow command-line files to be dropped
These files do not need to be compiled when CONFIG_CMDLINE is disabled. Update the Makefile to reflect this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/Makefile b/common/Makefile
index c96442bf95..9a4b8172f3 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -150,10 +150,10 @@ endif
endif
# We always have this since drivers/ddr/fs/interactive.c needs it
-obj-y += cli_simple.o
+obj-$(CONFIG_CMDLINE) += cli_simple.o
obj-y += cli.o
-obj-y += cli_readline.o
+obj-$(CONFIG_CMDLINE) += cli_readline.o
obj-y += command.o
obj-y += s_record.o
obj-y += xyzModem.o