瀏覽代碼

improve autorebuild for iptables when the kernel config changes

SVN-Revision: 6652
Felix Fietkau 19 年之前
父節點
當前提交
8e85262a8b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      package/iptables/Makefile

+ 2 - 2
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