mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] mtd-utils: Fix build without lzo support
@ 2012-03-23 14:18 bernhard
  2012-03-24  9:56 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: bernhard @ 2012-03-23 14:18 UTC (permalink / raw)
  To: ptxdist; +Cc: Bernhard Walle

From: Bernhard Walle <bernhard@bwalle.de>

Fix the build when target mtd-utils are built with ubi tools but without
LZO.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 ...0002-Make-liblzo-optional-for-ubifs-tools.patch |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/patches/mtd-utils-1.4.9/0002-Make-liblzo-optional-for-ubifs-tools.patch b/patches/mtd-utils-1.4.9/0002-Make-liblzo-optional-for-ubifs-tools.patch
index 81c63a9..eacff21 100644
--- a/patches/mtd-utils-1.4.9/0002-Make-liblzo-optional-for-ubifs-tools.patch
+++ b/patches/mtd-utils-1.4.9/0002-Make-liblzo-optional-for-ubifs-tools.patch
@@ -6,9 +6,23 @@ Based on patch from Marc Kleine-Budde <mkl@pengutronix.de>.
 
 Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
 ---
+ Makefile           |    2 +-
  mkfs.ubifs/compr.c |   17 +++++++++++++++++
- 1 files changed, 17 insertions(+), 0 deletions(-)
+ 2 files changed, 18 insertions(+), 1 deletion(-)
 
+diff --git a/Makefile b/Makefile
+index 000dc86..83eb9ce 100644
+--- a/Makefile
++++ b/Makefile
+@@ -103,7 +103,7 @@ $(call _mkdep,lib/,libmtd.a)
+ #
+ obj-mkfs.ubifs = crc16.o lpt.o compr.o devtable.o \
+ 	hashtable/hashtable.o hashtable/hashtable_itr.o
+-LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid
++LDLIBS_mkfs.ubifs = -lz $(LZOLDLIBS) -lm -luuid
+ $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)
+ 
+ #
 diff --git a/mkfs.ubifs/compr.c b/mkfs.ubifs/compr.c
 index 4152b6a..244d450 100644
 --- a/mkfs.ubifs/compr.c
-- 
1.7.9.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-24  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23 14:18 [ptxdist] [PATCH] mtd-utils: Fix build without lzo support bernhard
2012-03-24  9:56 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox