summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-10-25 03:12:26 +0000
committerNicolas Thill <nico@openwrt.org>2005-10-25 03:12:26 +0000
commiteab2f888d663c48555b66ae1e31488689e1dd4ac (patch)
tree16d531ae49d841264889ecf86c0ddf63197e6ba9
parent677d255471ef495ae0bf097f3ff13e2821d9f991 (diff)
downloadmtk-20170518-eab2f888d663c48555b66ae1e31488689e1dd4ac.zip
mtk-20170518-eab2f888d663c48555b66ae1e31488689e1dd4ac.tar.gz
mtk-20170518-eab2f888d663c48555b66ae1e31488689e1dd4ac.tar.bz2
backport from whiterussian [1371]
SVN-Revision: 2301
-rw-r--r--openwrt/package/arptables/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/openwrt/package/arptables/Makefile b/openwrt/package/arptables/Makefile
index ceb7450..f024e7d 100644
--- a/openwrt/package/arptables/Makefile
+++ b/openwrt/package/arptables/Makefile
@@ -21,10 +21,12 @@ $(PKG_BUILD_DIR)/.configured:
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
- CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
+ COPT_FLAGS="$(TARGET_CFLAGS)" \
+ KERNEL_DIR="./include/linux"
touch $@
$(IPKG_ARPTABLES):
- mkdir -p $(IDIR_ARPTABLES)/usr/sbin
- cp $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+ install -d -m0755 $(IDIR_ARPTABLES)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+ $(RSTRIP) $(IDIR_ARPTABLES)
$(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)