packages: do not use TAR_STRIP_COMPONENTS, but directly --strip-components
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Jul 2015 11:51:59 +0000 (13:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Jul 2015 11:51:59 +0000 (13:51 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/gcc.mk
package/lsof/lsof.mk
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk
package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk
package/perl/perl.mk
toolchain/toolchain-external/toolchain-external.mk

index be242cb6df1e4e84c5bd41b0fbe89ff4180d3164..d1693d5a078abce467040351dc95d0be5842a5fc 100644 (file)
@@ -53,7 +53,7 @@ endef
 
 define HOST_GCC_EXTRACT_CMDS
        $(call suitable-extractor,$(GCC_SOURCE)) $(DL_DIR)/$(GCC_SOURCE) | \
-               $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) \
+               $(TAR) --strip-components=1 -C $(@D) \
                --exclude='libjava/*' \
                --exclude='libgo/*' \
                --exclude='gcc/testsuite/*' \
index 19b303b8e29df5d31289edcb809b38642883b9af..f9b7661ab51d48a0b1aed2b115fbf20d046660bf 100644 (file)
@@ -34,7 +34,7 @@ endif
 define LSOF_EXTRACT_CMDS
        $(call suitable-extractor,$(LSOF_SOURCE)) $(DL_DIR)/$(LSOF_SOURCE) | \
                $(TAR) -O $(TAR_OPTIONS) - lsof_$(LSOF_VERSION)/lsof_$(LSOF_VERSION)_src.tar | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(LSOF_DIR) $(TAR_OPTIONS) -
+       $(TAR) --strip-components=1 -C $(LSOF_DIR) $(TAR_OPTIONS) -
 endef
 
 define LSOF_CONFIGURE_CMDS
index 7b6029ec9520bfc6b50c2aed7eca4eff4a19b032..4f7cdcf6d658b23ceb97789caff3e2f369657c84 100644 (file)
@@ -37,11 +37,11 @@ define NVIDIA_TEGRA23_BINARIES_EXTRACT_FURTHER
        $(INSTALL) -d $(@D)/nv_tegra/nvidia_drivers
        $(call suitable-extractor,$(@D)/nv_tegra/nvidia_drivers.tbz2) \
                $(@D)/nv_tegra/nvidia_drivers.tbz2 | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D)/nv_tegra/nvidia_drivers/ $(TAR_OPTIONS) -
+       $(TAR) --strip-components=0 -C $(@D)/nv_tegra/nvidia_drivers/ $(TAR_OPTIONS) -
        $(INSTALL) -d $(@D)/nv_tegra/nv_sample_apps/nvgstapps
        $(call suitable-extractor,$(@D)/nv_tegra/nv_sample_apps/nvgstapps.tbz2) \
                $(@D)/nv_tegra/nv_sample_apps/nvgstapps.tbz2 | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D)/nv_tegra/nv_sample_apps/nvgstapps/ $(TAR_OPTIONS) -
+       $(TAR) --strip-components=0 -C $(@D)/nv_tegra/nv_sample_apps/nvgstapps/ $(TAR_OPTIONS) -
 endef
 NVIDIA_TEGRA23_BINARIES_POST_EXTRACT_HOOKS += NVIDIA_TEGRA23_BINARIES_EXTRACT_FURTHER
 
index 18f083d885a7d9a962ab4020aaa95f59d090477e..5514643416da2b729512c1d8288fdf7099449305 100644 (file)
@@ -16,11 +16,11 @@ define NVIDIA_TEGRA23_CODECS_EXTRACT_CMDS
        $(INSTALL) -d $(@D)
        $(call suitable-extractor,$(NVIDIA_TEGRA23_CODECS_SOURCE)) \
                $(DL_DIR)/$(NVIDIA_TEGRA23_CODECS_SOURCE) | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D) $(TAR_OPTIONS) -
+       $(TAR) --strip-components=0 -C $(@D) $(TAR_OPTIONS) -
        $(INSTALL) -d $(@D)/restricted_codecs
        $(call suitable-extractor,$(@D)/restricted_codecs.tbz2) \
                $(@D)/restricted_codecs.tbz2 | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D)/restricted_codecs/ $(TAR_OPTIONS) -
+       $(TAR) --strip-components=0 -C $(@D)/restricted_codecs/ $(TAR_OPTIONS) -
 endef
 
 define NVIDIA_TEGRA23_CODECS_INSTALL_TARGET_CMDS
index 6794eefeac0daadd0d2a5e064ac678514413cd97..091c0327d701e1e06436fb2b671c810b1b6b73e9 100644 (file)
@@ -28,7 +28,7 @@ PERL_CROSS_NEW_POD = perl$(subst .,,$(PERL_VERSION))delta.pod
 # together with perl
 define PERL_CROSS_EXTRACT
        $(call suitable-extractor,$(PERL_CROSS_SOURCE)) $(DL_DIR)/$(PERL_CROSS_SOURCE) | \
-       $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
+       $(TAR) --strip-components=1 -C $(@D) $(TAR_OPTIONS) -
 endef
 PERL_POST_EXTRACT_HOOKS += PERL_CROSS_EXTRACT
 
index 22f81181b8d4f69c09c70e55c37bad8ad09250b5..070f06845e325c31aa325c34ea815958039dc3e0 100644 (file)
@@ -417,16 +417,16 @@ ifeq ($(BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2)$(BR2_TOOLCHAIN_EXTERNAL_
 define TOOLCHAIN_EXTERNAL_EXTRACT_CMDS
        mkdir -p $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)
        $(call suitable-extractor,$(TOOLCHAIN_EXTERNAL_SOURCE)) $(DL_DIR)/$(TOOLCHAIN_EXTERNAL_SOURCE) | \
-               $(TAR) $(TAR_STRIP_COMPONENTS)=3 --hard-dereference -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
+               $(TAR) --strip-components=3 --hard-dereference -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
        $(call suitable-extractor,$(TOOLCHAIN_EXTERNAL_EXTRA_DOWNLOADS)) $(DL_DIR)/$(TOOLCHAIN_EXTERNAL_EXTRA_DOWNLOADS) | \
-               $(TAR) $(TAR_STRIP_COMPONENTS)=3 --hard-dereference -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
+               $(TAR) --strip-components=3 --hard-dereference -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
 endef
 else ifneq ($(TOOLCHAIN_EXTERNAL_SOURCE),)
 # Normal handling of toolchain tarball extraction.
 define TOOLCHAIN_EXTERNAL_EXTRACT_CMDS
        mkdir -p $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)
        $(call suitable-extractor,$(TOOLCHAIN_EXTERNAL_SOURCE)) $(DL_DIR)/$(TOOLCHAIN_EXTERNAL_SOURCE) | \
-               $(TAR) $(TAR_STRIP_COMPONENTS)=1 --exclude='usr/lib/locale/*' -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
+               $(TAR) --strip-components=1 --exclude='usr/lib/locale/*' -C $(TOOLCHAIN_EXTERNAL_INSTALL_DIR) $(TAR_OPTIONS) -
        $(TOOLCHAIN_EXTERNAL_FIXUP_CMDS)
 endef
 endif