diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-10 17:03:38 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-10 17:03:38 +0000 |
commit | 318409fc3f68c0f6c6cdf52bb706bcba2a94e16b (patch) | |
tree | cd432a8e5ce883532e8a19543f80c67e11630241 | |
parent | f21778d9c29b75f073c3d41208f0eaeedfbd1b1e (diff) |
only use --wildcards for gnu tar
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5022 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/host.mk | 4 | ||||
-rw-r--r-- | toolchain/kernel-headers/Makefile | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/host.mk b/include/host.mk index b4580e2b7..645888147 100644 --- a/include/host.mk +++ b/include/host.mk @@ -22,3 +22,7 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk -e 's/cris.*/cris/' \ -e 's/i[3-9]86/i386/'`" >> $@ echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@ + if tar --version 2>&1 | grep 'GNU' >/dev/null; then \ + echo "TAR_OPTIONS+=--wildcards" >> $@; \ + fi + diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index 7b5c06c78..3e2cd2ae8 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -29,9 +29,10 @@ LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \ -e 's/armeb/arm/' \ ) + define Build/Prepare 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)/Makefile \ linux-$(PKG_VERSION)/Rules.make \ |