Skip to contentSkip to conversation

Fix crosscompilation for mkfs.ubifs

PATCH In review Matthias Fuchs 2 participants 2 messages Oct 23, 2009 – Oct 24, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix crosscompilation for mkfs.ubifs

This patch adds support for passing the location of the lzo library and headers.

Also BUILDDIR must be referenced to find the libubi.a archive.

---
 mkfs.ubifs/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
mkfs.ubifs/Makefile +3 -1
index a678b0a..61d0e20 100644
@@ -1,11 +1,13 @@
 
 CPPFLAGS += -I../include -I../ubi-utils/include
+CPPFLAGS += $(ZLIBCPPFLAGS) $(LZOCPPFLAGS)
 
 ALL_SOURCES=*.[ch] hashtable/*.[ch]
 
 TARGETS = mkfs.ubifs
 
-LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid -L../ubi-utils/ -lubi
+LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid -L$(BUILDDIR)/../ubi-utils/ -lubi
+LDLIBS_mkfs.ubifs += $(ZLIBLDFLAGS) $(LZOLDFLAGS)
 
 include ../common.mk
 
Signature · 1 line
1.6.1
#1 lore raw
Quoted 6 lines · Matthias Fuchs

This patch adds support for passing the location of the lzo library and headers.

Also BUILDDIR must be referenced to find the libubi.a archive.

Pushed, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)