aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-07-09 05:21:57 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-09 15:42:26 +0200
commit0645fb80843e45ecc3843f5013801233f37e77eb (patch)
tree2af9c99635a526cfcd0672e516219edefc49e565 /arch
parentb3b60706221d75f3a0fce2441ce7a968981e7363 (diff)
downloadbuildroot-0645fb80843e45ecc3843f5013801233f37e77eb.tar.gz
buildroot-0645fb80843e45ecc3843f5013801233f37e77eb.tar.bz2
arch/xtensa: accept the overlay to be compressed
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arch.mk.xtensa4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arch.mk.xtensa b/arch/arch.mk.xtensa
index 6d9fd63d12..ecb9c1086a 100644
--- a/arch/arch.mk.xtensa
+++ b/arch/arch.mk.xtensa
@@ -21,5 +21,7 @@ ARCH_XTENSA_OVERLAY_FILE = $(call qstrip,$(BR2_XTENSA_OVERLAY_FILE))
# $(call arch-xtensa-overlay-extract,/path/to/overlay.tar,$(@D),gcc)
################################################################################
define arch-xtensa-overlay-extract
- tar xf $(ARCH_XTENSA_OVERLAY_FILE) -C $(1) --strip-components=1 $(2)
+ $(call suitable-extractor,$(ARCH_XTENSA_OVERLAY_FILE)) \
+ $(ARCH_XTENSA_OVERLAY_FILE) | \
+ $(TAR) --strip-components=1 -C $(1) $(TAR_OPTIONS) - $(2)
endef