summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-10 15:11:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-07-10 15:11:29 +0000
commit1c742fb388d8c6f94969c73fe403e442d0022c1a (patch)
tree78303ca92ce22c9b7abdaad912701aeafcb94115
parent4e042e4a8488e904c5cc6436e6b6bf4dc9b6a9db (diff)
downloadmtk-20170518-1c742fb388d8c6f94969c73fe403e442d0022c1a.zip
mtk-20170518-1c742fb388d8c6f94969c73fe403e442d0022c1a.tar.gz
mtk-20170518-1c742fb388d8c6f94969c73fe403e442d0022c1a.tar.bz2
build: move the XARGS variable out of the host checks, since a working xargs is built in tools/
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37228
-rw-r--r--include/host.mk5
-rw-r--r--rules.mk1
2 files changed, 1 insertions, 5 deletions
diff --git a/include/host.mk b/include/host.mk
index b44c1bf..000fb18 100644
--- a/include/host.mk
+++ b/include/host.mk
@@ -54,11 +54,6 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
else \
echo "FIND_L=$$FIND \$$(1) -follow" >> $@; \
fi; \
- if xargs --help 2>&1 | grep 'gnu.org' >/dev/null; then \
- echo 'XARGS:=xargs -r' >> $@; \
- else \
- echo 'XARGS:=xargs' >> $@; \
- fi; \
PATCH=`which gpatch 2>/dev/null`; \
[ -n "$$PATCH" -a -x "$$PATCH" ] || PATCH=`which patch 2>/dev/null`; \
echo "PATCH:=$$PATCH" >> $@; \
diff --git a/rules.mk b/rules.mk
index 6a283bd..2e9e20d 100644
--- a/rules.mk
+++ b/rules.mk
@@ -207,6 +207,7 @@ KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
CP:=cp -fpR
LN:=ln -sf
+XARGS:=xargs -r
INSTALL_BIN:=install -m0755
INSTALL_DIR:=install -d -m0755