summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2018-02-13 16:07:55 +0800
committerTom Rini <trini@konsulko.com>2018-11-09 13:45:42 -0500
commitfb3148a2302b18860a5141d2d8d500ff7d58c0b8 (patch)
treef5d56b76d3b347ce7e9fedb7cf5f5372f3d8984c /common/Makefile
parent6b0afcc85092650ce386868254c4a607ca7f1a26 (diff)
common: build ymodem only on need
Build ymodem only on need to shrink spl image size. Signed-off-by: Jun Nie <jun.nie@linaro.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index 7473b85011..a2388364d9 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -121,6 +121,7 @@ obj-y += command.o
obj-$(CONFIG_$(SPL_)LOG) += log.o
obj-$(CONFIG_$(SPL_)LOG_CONSOLE) += log_console.o
obj-y += s_record.o
-obj-y += xyzModem.o
+obj-$(CONFIG_CMD_LOADB) += xyzModem.o
+obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o
obj-$(CONFIG_AVB_VERIFY) += avb_verify.o