diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 21:06:45 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 21:06:45 +0000 |
| commit | ddc55842445a938f3271fec0ebc768a373fa071a (patch) | |
| tree | d4a81ad0d5e48d6595451730383a3d14795e1355 /openwrt/include | |
| parent | 10db4ed4cce4fb8e0c2a2c7b0261071afc8b5994 (diff) | |
| download | mtk-20170518-ddc55842445a938f3271fec0ebc768a373fa071a.zip mtk-20170518-ddc55842445a938f3271fec0ebc768a373fa071a.tar.gz mtk-20170518-ddc55842445a938f3271fec0ebc768a373fa071a.tar.bz2 | |
more portability fixes and a prereq check for gnu tar
SVN-Revision: 5037
Diffstat (limited to 'openwrt/include')
| -rw-r--r-- | openwrt/include/host.mk | 4 | ||||
| -rw-r--r-- | openwrt/include/prereq-build.mk | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/openwrt/include/host.mk b/openwrt/include/host.mk index abcf045..3a5fd96 100644 --- a/openwrt/include/host.mk +++ b/openwrt/include/host.mk @@ -7,6 +7,8 @@ include $(TOPDIR)/.host.mk +export TAR + $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk @( \ HOST_OS=`uname`; \ @@ -23,5 +25,7 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk if tar --version 2>&1 | grep 'GNU' >/dev/null; then \ echo "TAR_WILDCARDS:=--wildcards" >> $@; \ fi; \ + TAR=`which gtar tar | head -n 1`; \ + echo "TAR:=$$TAR" >> $@; \ ) diff --git a/openwrt/include/prereq-build.mk b/openwrt/include/prereq-build.mk index a2e5469..d6396af 100644 --- a/openwrt/include/prereq-build.mk +++ b/openwrt/include/prereq-build.mk @@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk TMP_DIR:=$(TOPDIR)/tmp include $(INCLUDE_DIR)/prereq.mk +include $(INCLUDE_DIR)/host.mk define Require/non-root [ "$$(shell whoami)" != "root" ] @@ -94,3 +95,11 @@ $(eval $(call RequireCommand,patch, \ $(eval $(call RequireCommand,perl, \ Please install perl. \ )) + +define Require/gnutar + $(TAR) --version 2>&1 | grep GNU > /dev/null +endef + +$(eval $(call Require,gnutar, \ + Please install GNU tar. \ +)) |
