aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libuuid/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/libuuid/Makefile')
-rw-r--r--tools/depends/target/libuuid/Makefile24
1 files changed, 9 insertions, 15 deletions
diff --git a/tools/depends/target/libuuid/Makefile b/tools/depends/target/libuuid/Makefile
index 5dd6747b1f..92c9157242 100644
--- a/tools/depends/target/libuuid/Makefile
+++ b/tools/depends/target/libuuid/Makefile
@@ -1,21 +1,15 @@
include ../../Makefile.include
DEPS= ../../Makefile.include Makefile
+# We use uuid from e2fsprogs since this easily cross-compiles on android, while util-linux does not.
# lib name, version
LIBNAME=libuuid
-VERSION=2.20.0
-SOURCE=util-linux-2.20.1
-ARCHIVE=$(SOURCE).tar.gz
+VERSION=1.42.13
+SOURCE=e2fsprogs-1.42.13
+ARCHIVE=$(SOURCE).tar.xz
-# configuration settings
-CONFIGURE=echo "scanf_cv_type_modifier=as" > config.cache; \
- ./configure --prefix=$(PREFIX) --cache-file=config.cache \
- --disable-shared --disable-mount --disable-fsck --disable-partx --disable-libblkid \
- --disable-libmount --disable-mountpoint --disable-nls --disable-rpath --disable-agetty \
- --disable-cramfs --disable-switch_root --disable-pivot_root --disable-fallocate \
- --disable-unshare --disable-rename --disable-schedutils --disable-wall --without-ncurses
-LIBDYLIB=$(PLATFORM)/libuuid/src/.libs/$(LIBNAME).a
+LIBDYLIB=$(PLATFORM)/lib/$(LIBNAME).a
all: .installed-$(PLATFORM)
@@ -25,17 +19,17 @@ $(TARBALLS_LOCATION)/$(ARCHIVE):
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM); ./configure --prefix=$(PREFIX) --disable-fsck
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)/libuuid
+ cd $(PLATFORM)/lib/uuid ; $(MAKE) -j1
.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM)/libuuid install
+ cd $(PLATFORM)/lib/uuid ; $(MAKE) -j1 install
touch $@
clean:
- $(MAKE) -C $(PLATFORM)/libuuid clean
+ $(MAKE) -C $(PLATFORM) clean
rm -f .installed-$(PLATFORM)
distclean::