X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/02e3b0f5531da86339e8da86b1f78a9b6aba7f50..3a1a68de7495b2addfe13cbcbcc842dc0b935cfa:/package/iptables/Makefile diff --git a/package/iptables/Makefile b/package/iptables/Makefile index 67dedca38..0069338f0 100644 --- a/package/iptables/Makefile +++ b/package/iptables/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -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 @@ -139,7 +143,6 @@ iptables extensions for matching/changing IP packet options. Matches: - dscp - - hashlimit - ecn - length - mark @@ -388,7 +391,7 @@ TARGET_CFLAGS += \ CONFIGURE_ARGS += \ --enable-shared \ --enable-devel \ - --enable-ipv6 \ + $(if $(CONFIG_IPV6),--enable-ipv6,--disable-ipv6) \ --enable-libipq \ --with-kernel="$(LINUX_DIR)" \ --with-xtlibdir=/usr/lib/iptables