From 620843b2eef4c20d4fd63ba5fd3d30392702c5c0 Mon Sep 17 00:00:00 2001
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 6 Feb 2012 17:15:36 +0000
Subject: [PATCH] iptables: don't apply patches if building an external kernel

SVN-Revision: 30339
---
 package/iptables/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index b60990cabf..5f56630237 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -23,6 +23,10 @@ PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
+ifneq ($(CONFIG_EXTERNAL_KERNEL_TREE),"")
+PATCH_DIR:=
+endif
+
 include $(INCLUDE_DIR)/package.mk
 ifeq ($(DUMP),)
   -include $(LINUX_DIR)/.config
-- 
2.30.2