mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 03:47:31 +02:00
0fdff487b9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23179 3c298f89-4303-0410-b956-a3cf2f4a3e73
22 lines
669 B
Diff
22 lines
669 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -43,10 +43,15 @@ $(SYMLINKS):
|
|
ln -sf ../fs/jffs2/$@ $@
|
|
|
|
$(BUILDDIR)/mkfs.jffs2: $(addprefix $(BUILDDIR)/,\
|
|
- 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) \
|
|
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
|
|
|
|
$(BUILDDIR)/jffs2reader: $(BUILDDIR)/jffs2reader.o
|
|
LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
|