summaryrefslogtreecommitdiff
path: root/fs/jffs2/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-31 04:24:56 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-31 04:24:56 +0200
commit08ab4e1780fa63c88dd5a5ab52f4ff4ed1ee1878 (patch)
tree0b8d061f6fd4b7ad68b94e509e644e5456a44613 /fs/jffs2/Makefile
parentc1de7a6daf9c657484e1c6d433f01fccd49a7f48 (diff)
downloadu-boot-imx-08ab4e1780fa63c88dd5a5ab52f4ff4ed1ee1878.zip
u-boot-imx-08ab4e1780fa63c88dd5a5ab52f4ff4ed1ee1878.tar.gz
u-boot-imx-08ab4e1780fa63c88dd5a5ab52f4ff4ed1ee1878.tar.bz2
fs: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'fs/jffs2/Makefile')
-rw-r--r--fs/jffs2/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/jffs2/Makefile b/fs/jffs2/Makefile
index a071af1..fd6a105 100644
--- a/fs/jffs2/Makefile
+++ b/fs/jffs2/Makefile
@@ -26,13 +26,15 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libjffs2.a
AOBJS =
-COBJS-y += jffs2_1pass.o
+ifdef CONFIG_CMD_JFFS2
+COBJS-$(CONFIG_JFFS2_LZO_LZARI) += compr_lzari.o
+COBJS-$(CONFIG_JFFS2_LZO_LZARI) += compr_lzo.o
COBJS-y += compr_rtime.o
COBJS-y += compr_rubin.o
COBJS-y += compr_zlib.o
+COBJS-y += jffs2_1pass.o
COBJS-y += mini_inflate.o
-COBJS-y += compr_lzo.o
-COBJS-y += compr_lzari.o
+endif
COBJS := $(COBJS-y)
SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)