summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-11-11 14:35:52 +0900
committerTom Rini <trini@ti.com>2013-11-17 14:11:30 -0500
commit164922bd7c383a2c82739f8b080b2e0da801ec0d (patch)
tree3ccdfc39750a6ca085e60df5d07bc17de9d732ab /Makefile
parent7b6af41ef342199e4967735ea17424b42ed742d2 (diff)
downloadu-boot-imx-164922bd7c383a2c82739f8b080b2e0da801ec0d.zip
u-boot-imx-164922bd7c383a2c82739f8b080b2e0da801ec0d.tar.gz
u-boot-imx-164922bd7c383a2c82739f8b080b2e0da801ec0d.tar.bz2
lib: descend into sub directories only when it is necessary
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1f499c5..e12f180 100644
--- a/Makefile
+++ b/Makefile
@@ -232,10 +232,10 @@ OBJS := $(addprefix $(obj),$(OBJS))
HAVE_VENDOR_COMMON_LIB = $(if $(wildcard board/$(VENDOR)/common/Makefile),y,n)
LIBS-y += lib/libgeneric.o
-LIBS-y += lib/rsa/librsa.o
-LIBS-y += lib/lzma/liblzma.o
-LIBS-y += lib/lzo/liblzo.o
-LIBS-y += lib/zlib/libz.o
+LIBS-$(CONFIG_RSA) += lib/rsa/librsa.o
+LIBS-$(CONFIG_LZMA) += lib/lzma/liblzma.o
+LIBS-$(CONFIG_LZO) += lib/lzo/liblzo.o
+LIBS-$(CONFIG_ZLIB) += lib/zlib/libz.o
LIBS-$(CONFIG_TIZEN) += lib/tizen/libtizen.o
LIBS-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/lib$(VENDOR).o
LIBS-y += $(CPUDIR)/lib$(CPU).o