]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: build ymodem only on need
authorJun Nie <jun.nie@linaro.org>
Tue, 13 Feb 2018 08:07:55 +0000 (16:07 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 9 Nov 2018 18:45:42 +0000 (13:45 -0500)
Build ymodem only on need to shrink spl image size.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
common/Makefile

index 7473b850115c62717726f0e8cdc0e6d4153b97c9..a2388364d9f9b7696cd4b90d370418700aaea190 100644 (file)
@@ -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