Makefile.package.in: Add BR2_XZCAT for LZMA compression type
authorAllan W. Nielsen <a@awn.dk>
Tue, 10 May 2011 06:17:05 +0000 (08:17 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 12 Jul 2011 21:14:44 +0000 (23:14 +0200)
Signed-off-by: Allan W. Nielsen <a@awn.dk>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Config.in
Makefile
package/Makefile.package.in

index a67c08d7fbb4f8a535d5fb935e5ed78358dbe379..2fce9d790066d5c09bd11ccb8e4d4f595cc59033 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -52,6 +52,13 @@ config BR2_BZCAT
          Default is "bzcat"
          Other possible values include "bunzip2 -c" or "bzip2 -d -c".
 
+config BR2_XZCAT
+       string "xzcat command"
+       default "xzcat"
+       help
+         Command to be used to extract a xz'ed file to stdout.
+         Default is "xzcat"
+
 config BR2_TAR_OPTIONS
        string "Tar options"
        default ""
index 20dd707103a0cfa69a94d6c6a2c33d37c53a6c0f..2f3802c1056a8a595f55b5549744e3227947b79e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -261,6 +261,7 @@ KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \
 
 ZCAT:=$(call qstrip,$(BR2_ZCAT))
 BZCAT:=$(call qstrip,$(BR2_BZCAT))
+XZCAT:=$(call qstrip,$(BR2_XZCAT))
 TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
 
 GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
index faa7ff1f3852824e2c98fb584b4edaf4e3bb0bc4..74087cd46284613938210e74f86afeed850c993a 100644 (file)
@@ -61,6 +61,7 @@ INFLATE.gz   = $(ZCAT)
 INFLATE.tbz  = $(BZCAT)
 INFLATE.tbz2 = $(BZCAT)
 INFLATE.tgz  = $(ZCAT)
+INFLATE.xz   = $(XZCAT)
 INFLATE.tar  = cat
 
 # MESSAGE Macro -- display a message in bold type