aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/100-optional_lzo.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-10-01 16:39:08 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-10-01 16:39:08 +0000
commit930031c5d10ce5c4e15979ee0547eb2399709bc7 (patch)
tree42aae04dff446edc875829bc04f650da6211b7a6 /tools/mtd-utils/patches/100-optional_lzo.patch
parent42a49519f011d2531099fc68ce764c82c4dd84c8 (diff)
downloadupstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.tar.gz
upstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.tar.bz2
upstream-930031c5d10ce5c4e15979ee0547eb2399709bc7.zip
tools/mtd-utils: update to mtd-utils-20101001, fix FreeBSD (and hopefully Darwin) build issues.
SVN-Revision: 23169
Diffstat (limited to 'tools/mtd-utils/patches/100-optional_lzo.patch')
-rw-r--r--tools/mtd-utils/patches/100-optional_lzo.patch21
1 files changed, 5 insertions, 16 deletions
diff --git a/tools/mtd-utils/patches/100-optional_lzo.patch b/tools/mtd-utils/patches/100-optional_lzo.patch
index d9ebc3e9b4..5af0ae23e1 100644
--- a/tools/mtd-utils/patches/100-optional_lzo.patch
+++ b/tools/mtd-utils/patches/100-optional_lzo.patch
@@ -1,15 +1,14 @@
--- a/Makefile
+++ b/Makefile
-@@ -36,10 +36,16 @@ $(SYMLINKS):
+@@ -42,10 +42,15 @@ $(SYMLINKS):
ln -sf ../fs/jffs2/$@ $@
$(BUILDDIR)/mkfs.jffs2: $(addprefix $(BUILDDIR)/,\
-- crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o compr_lzo.o \
-+ crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o $(if $(NO_LZO),,compr_lzo.o) \
+- 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
@@ -18,15 +17,5 @@
+CPPFLAGS += -DCONFIG_JFFS2_LZO
+endif
- $(BUILDDIR)/flash_eraseall: $(BUILDDIR)/crc32.o $(BUILDDIR)/flash_eraseall.o
-
---- a/compr.h
-+++ b/compr.h
-@@ -18,7 +18,6 @@
-
- #define CONFIG_JFFS2_ZLIB
- #define CONFIG_JFFS2_RTIME
--#define CONFIG_JFFS2_LZO
-
- #define JFFS2_RUBINMIPS_PRIORITY 10
- #define JFFS2_DYNRUBIN_PRIORITY 20
+ $(BUILDDIR)/jffs2reader: $(BUILDDIR)/jffs2reader.o
+ LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)