From: nbd Date: Fri, 23 Mar 2007 19:19:23 +0000 (+0000) Subject: improve autorebuild for iptables when the kernel config changes X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=878bf6bcc711ab94c88d265726d7f845f3cf750b improve autorebuild for iptables when the kernel config changes git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6652 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/iptables/Makefile b/package/iptables/Makefile index 822be9976..17b79d2fd 100644 --- a/package/iptables/Makefile +++ b/package/iptables/Makefile @@ -24,6 +24,7 @@ include $(INCLUDE_DIR)/package.mk ifeq ($(DUMP),) -include $(LINUX_DIR)/.config include $(INCLUDE_DIR)/netfilter.mk + STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell grep 'NETFILTER' $(LINUX_DIR)/.config | md5s) endif define Package/iptables/Default @@ -159,9 +160,8 @@ define Package/ip6tables TITLE:=IPv6 firewall administration tool endef -$(PKG_BUILD_DIR)/.configured: $(LINUX_DIR)/.config - define Build/Configure + rm -f $(PKG_BUILD_DIR)/.configured* $(MAKE) -C $(PKG_BUILD_DIR) \ clean endef