Allow command-line files to be dropped
authorSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 01:07:34 +0000 (19:07 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:11 +0000 (12:16 -0400)
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>
common/Makefile

index c96442bf9553ec191ab6c006f6efb7c0e1040a61..9a4b8172f38c9fab375f89a3c11f020fef4525cf 100644 (file)
@@ -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