[U-Boot] [PATCH] common: build ymodem only on need
Jun Nie
jun.nie at linaro.org
Tue Feb 13 08:07:55 UTC 2018
Build ymodem only on need to shrink spl image size.
Signed-off-by: Jun Nie <jun.nie at linaro.org>
---
common/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
1.9.1
More information about the U-Boot
mailing list