diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-07 11:33:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-07 11:33:12 +0000 |
commit | 3cf0250da20f230a3edbe585bd16fdd19576851e (patch) | |
tree | 0b3dd2d569e494e5c535142cfb479da72bbd8865 /include/host.mk | |
parent | d3f412f4ec3a6e47297ab22c60208394aed9b03c (diff) | |
download | mtk-20170518-3cf0250da20f230a3edbe585bd16fdd19576851e.zip mtk-20170518-3cf0250da20f230a3edbe585bd16fdd19576851e.tar.gz mtk-20170518-3cf0250da20f230a3edbe585bd16fdd19576851e.tar.bz2 |
host.mk: introduce PATCH which refers to either gpatch or patch
SVN-Revision: 23287
Diffstat (limited to 'include/host.mk')
-rw-r--r-- | include/host.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/host.mk b/include/host.mk index f3e47c8..9b8a32b 100644 --- a/include/host.mk +++ b/include/host.mk @@ -59,6 +59,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk 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" >> $@; \ ) endif |