2009-06-14 20:42:12 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2010-10-01 16:39:08 +00:00
|
|
|
@@ -42,10 +42,15 @@ $(SYMLINKS):
|
2009-06-14 20:42:12 +00:00
|
|
|
ln -sf ../fs/jffs2/$@ $@
|
|
|
|
|
|
|
|
$(BUILDDIR)/mkfs.jffs2: $(addprefix $(BUILDDIR)/,\
|
2010-10-01 16:39:08 +00:00
|
|
|
- compr_rtime.o mkfs.jffs2.o compr_zlib.o compr_lzo.o \
|
|
|
|
+ compr_rtime.o mkfs.jffs2.o compr_zlib.o $(if $(NO_LZO),,compr_lzo.o) \
|
2009-06-14 20:42:12 +00:00
|
|
|
compr.o rbtree.o)
|
|
|
|
-LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
|
|
|
|
-LDLIBS_mkfs.jffs2 = -lz -llzo2
|
|
|
|
+LDFLAGS_mkfs.jffs2 := $(ZLIBLDFLAGS)
|
|
|
|
+LDLIBS_mkfs.jffs2 := -lz
|
|
|
|
+ifndef NO_LZO
|
|
|
|
+LDFLAGS_mkfs.jffs2 += $(LZOLDFLAGS)
|
|
|
|
+LDLIBS_mkfs.jffs2 += -llzo2
|
|
|
|
+CPPFLAGS += -DCONFIG_JFFS2_LZO
|
|
|
|
+endif
|
|
|
|
|
2010-10-01 16:39:08 +00:00
|
|
|
$(BUILDDIR)/jffs2reader: $(BUILDDIR)/jffs2reader.o
|
|
|
|
LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
|