ath9k: add more pending fixes from linux-wireless@
[openwrt.git] / tools / mtd-utils / patches / 100-optional_lzo.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -43,10 +43,15 @@ $(SYMLINKS):
4 ln -sf ../fs/jffs2/$@ $@
5
6 $(BUILDDIR)/mkfs.jffs2: $(addprefix $(BUILDDIR)/,\
7 - compr_rtime.o mkfs.jffs2.o compr_zlib.o compr_lzo.o \
8 + compr_rtime.o mkfs.jffs2.o compr_zlib.o $(if $(NO_LZO),,compr_lzo.o) \
9 compr.o rbtree.o)
10 -LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
11 -LDLIBS_mkfs.jffs2 = -lz -llzo2
12 +LDFLAGS_mkfs.jffs2 := $(ZLIBLDFLAGS)
13 +LDLIBS_mkfs.jffs2 := -lz
14 +ifndef NO_LZO
15 +LDFLAGS_mkfs.jffs2 += $(LZOLDFLAGS)
16 +LDLIBS_mkfs.jffs2 += -llzo2
17 +CPPFLAGS += -DCONFIG_JFFS2_LZO
18 +endif
19
20 $(BUILDDIR)/jffs2reader: $(BUILDDIR)/jffs2reader.o
21 LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
This page took 0.043232 seconds and 5 git commands to generate.