diff options
Diffstat (limited to 'toolchain')
-rwxr-xr-x | toolchain/dependencies/check-host-lzma.sh | 13 | ||||
-rw-r--r-- | toolchain/dependencies/dependencies.mk | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/toolchain/dependencies/check-host-lzma.sh b/toolchain/dependencies/check-host-lzma.sh new file mode 100755 index 000000000..34e8f0379 --- /dev/null +++ b/toolchain/dependencies/check-host-lzma.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +ok="" + +for bin in /usr/bin/lzma $LZMA +do +# TODO: add check for proper functionality here.. + $bin --version > /dev/null 2>&1 && ok="$bin" + if test "x$ok" != "x" ; then + break + fi +done +echo "$ok" diff --git a/toolchain/dependencies/dependencies.mk b/toolchain/dependencies/dependencies.mk index 992f91461..b18ffc050 100644 --- a/toolchain/dependencies/dependencies.mk +++ b/toolchain/dependencies/dependencies.mk @@ -5,7 +5,7 @@ # ###################################################################### -dependencies: host-sed +dependencies: host-sed host-lzma @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \ HOST_SED_DIR="$(HOST_SED_DIR)" \ $(TOPDIR)/toolchain/dependencies/dependencies.sh |