diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-02-12 22:15:39 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-15 22:11:11 +0100 |
commit | f165032e4f01aa46b43cc8136bac1c5b47aa8545 (patch) | |
tree | d65765401ba090c900d52f7cd70770a4b3e2243f /support/dependencies | |
parent | dc7fcbe494ffddcaba630889fe1a2915569be3f1 (diff) | |
download | buildroot-f165032e4f01aa46b43cc8136bac1c5b47aa8545.tar.gz buildroot-f165032e4f01aa46b43cc8136bac1c5b47aa8545.zip |
package: add generic support for lz archives
This commit teaches the generic package handling code how to extract .tar.lz
archives. When lzip is not installed on the host, host-lzip gets built
automatically.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/dependencies')
-rw-r--r-- | support/dependencies/check-host-lzip.mk | 5 | ||||
-rwxr-xr-x | support/dependencies/check-host-lzip.sh | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/support/dependencies/check-host-lzip.mk b/support/dependencies/check-host-lzip.mk new file mode 100644 index 0000000000..6acfdc6dfa --- /dev/null +++ b/support/dependencies/check-host-lzip.mk @@ -0,0 +1,5 @@ +ifeq (,$(call suitable-host-package,lzip,$(LZCAT))) +DEPENDENCIES_HOST_PREREQ += host-lzip +EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS += .lz +LZCAT = $(HOST_DIR)/usr/bin/lzip -d -c +endif diff --git a/support/dependencies/check-host-lzip.sh b/support/dependencies/check-host-lzip.sh new file mode 100755 index 0000000000..4f8a2ba3de --- /dev/null +++ b/support/dependencies/check-host-lzip.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +candidate="$1" + +lzip=`which $candidate 2>/dev/null` +if [ ! -x "$lzip" ]; then + lzip=`which lzip 2>/dev/null` + if [ ! -x "$lzip" ]; then + # echo nothing: no suitable lzip found + exit 1 + fi +fi + +echo $lzip |