X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7f3b481ec937e79225ef78f167070b2249e2f62a..6b41b93bc5392ff632b68700d32f226f4dbc4c6f:/include/host.mk?ds=sidebyside diff --git a/include/host.mk b/include/host.mk index 497d04450..b93ab8d53 100644 --- a/include/host.mk +++ b/include/host.mk @@ -6,7 +6,7 @@ # TMP_DIR ?= $(TOPDIR)/tmp -ifndef DUMP +ifeq ($(if $(TARGET_BUILD),,$(DUMP)),) -include $(TMP_DIR)/.host.mk endif @@ -30,6 +30,7 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \ echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \ TAR=`which gtar 2>/dev/null`; \ + [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which gnutar 2>/dev/null`; \ [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \ echo "TAR:=$$TAR" >> $@; \ FIND=`which gfind 2>/dev/null`; \