only use --wildcards for gnu tar

SVN-Revision: 5022
lede-17.01
Felix Fietkau 2006-10-10 17:03:38 +00:00
parent 6d7097f899
commit 2122cf1717
2 changed files with 6 additions and 1 deletions

View File

@ -22,3 +22,7 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
-e 's/cris.*/cris/' \ -e 's/cris.*/cris/' \
-e 's/i[3-9]86/i386/'`" >> $@ -e 's/i[3-9]86/i386/'`" >> $@
echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@ echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@
if tar --version 2>&1 | grep 'GNU' >/dev/null; then \
echo "TAR_OPTIONS+=--wildcards" >> $@; \
fi

View File

@ -29,9 +29,10 @@ LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
-e 's/armeb/arm/' \ -e 's/armeb/arm/' \
) )
define Build/Prepare define Build/Prepare
mkdir -p $(TOOLCHAIN_BUILD_DIR) mkdir -p $(TOOLCHAIN_BUILD_DIR)
bzcat $(DL_DIR)/$(PKG_SOURCE) | tar --wildcards -C $(TOOLCHAIN_BUILD_DIR) $(TAR_OPTIONS) - \ bzcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(TOOLCHAIN_BUILD_DIR) $(TAR_OPTIONS) - \
linux-$(PKG_VERSION)/include \ linux-$(PKG_VERSION)/include \
linux-$(PKG_VERSION)/Makefile \ linux-$(PKG_VERSION)/Makefile \
linux-$(PKG_VERSION)/Rules.make \ linux-$(PKG_VERSION)/Rules.make \