aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-10-25 08:15:09 +0100
committerMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-10-25 08:15:09 +0100
commit0c47ea434173f1c5ce1e242e325dd6e1ec86c24a (patch)
tree0aec6176f47f79c8195bdff85a4ec5edd3a3619c /tools
parentc1be42bf1f8adcee0ae5575e0a8d0b24a0306d60 (diff)
parent94faa07c8134e70e0dfb54a2da9367455a79ac6a (diff)
Merge pull request #8278 from wsnipex/droid-uuid
[droid] fix crashing on addon installation
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/Makefile8
-rw-r--r--tools/depends/target/crossguid/Makefile3
-rw-r--r--tools/depends/target/libuuid/Makefile24
3 files changed, 13 insertions, 22 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index a93747cdd7..ed17ca5834 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -35,7 +35,8 @@ ifeq ($(OS),osx)
endif
ifeq ($(OS),android)
- DEPENDS += mdnsresponder android-sources-ics google-breakpad
+ DEPENDS += mdnsresponder android-sources-ics google-breakpad libuuid
+ CROSSGUID_DEPS = libuuid
endif
DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS))
@@ -63,6 +64,7 @@ ifeq ($(OS),linux)
endif
DEPENDS += alsa-lib
ALSA_LIB = alsa-lib
+ CROSSGUID_DEPS = libuuid
endif
.PHONY: $(DEPENDS)
@@ -97,9 +99,7 @@ libsdl2: $(LINUX_SYSTEM_LIBS)
libxslt: libgcrypt
ffmpeg: $(ICONV) $(ZLIB) bzip2 libvorbis $(FFMPEG_DEPENDS)
libcec: platform
-ifeq ($(OS),linux)
-crossguid: libuuid
-endif
+crossguid: $(CROSSGUID_DEPS)
.installed-$(PLATFORM): $(DEPENDS)
touch $@
diff --git a/tools/depends/target/crossguid/Makefile b/tools/depends/target/crossguid/Makefile
index 1a40249e1c..487ab2a617 100644
--- a/tools/depends/target/crossguid/Makefile
+++ b/tools/depends/target/crossguid/Makefile
@@ -26,9 +26,6 @@ endif
# define specifying the native GUID implementation to use
GUID_PLATFORM_DEFINE=GUID_LIBUUID
-ifeq ($(OS),android)
- GUID_PLATFORM_DEFINE=GUID_ANDROID
-endif
ifeq ($(OS),osx)
GUID_PLATFORM_DEFINE=GUID_CFUUID
endif
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::