common: build ymodem only on need

Message ID 1518509275-27374-1-git-send-email-jun.nie@linaro.org
State New
Headers show
Series
  • common: build ymodem only on need
Related show

Commit Message

Jun Nie Feb. 13, 2018, 8:07 a.m.
Build ymodem only on need to shrink spl image size.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 common/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/common/Makefile b/common/Makefile
index c7bde23..0614348 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -133,4 +133,5 @@  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