summaryrefslogtreecommitdiff
path: root/polux/package/iptables
diff options
context:
space:
mode:
authorJean-Philippe SAVE2012-02-20 16:38:56 +0100
committerJean-Philippe SAVE2012-02-20 16:38:56 +0100
commit55a15cc820e926219ebce47218ce1e2f35bb0c48 (patch)
treedba3ff39a766e47859ab7fd837d8da5d30b56b1f /polux/package/iptables
parent1353d3215782b997fdec3f9182cbda547d92d7e9 (diff)
parentcfc4d43d4d19c398d994b75cb1eeda3c499bd234 (diff)
Add polux base by subtree merge
Diffstat (limited to 'polux/package/iptables')
-rw-r--r--polux/package/iptables/Config.in4
-rw-r--r--polux/package/iptables/iptables.mk32
2 files changed, 36 insertions, 0 deletions
diff --git a/polux/package/iptables/Config.in b/polux/package/iptables/Config.in
new file mode 100644
index 0000000000..2caebd4f77
--- /dev/null
+++ b/polux/package/iptables/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_IPTABLES
+ depends on BR2_APP_NETWORK
+ bool "iptables"
+ default n
diff --git a/polux/package/iptables/iptables.mk b/polux/package/iptables/iptables.mk
new file mode 100644
index 0000000000..2fe37d4670
--- /dev/null
+++ b/polux/package/iptables/iptables.mk
@@ -0,0 +1,32 @@
+#############################################################
+#
+# iptables
+#
+#############################################################
+IPTABLES_BUILD_DIR=$(APP_DIR)/iptables
+
+$(IPTABLES_BUILD_DIR)/iptables:
+ $(MAKE) -C $(IPTABLES_BUILD_DIR) \
+ CC=arm-uclinux-gcc \
+ ARMCFLAGS="-march=armv5 -msoft-float" \
+ LINKFLAGS="-Wl,-elf2flt='-s8k'" \
+ KERNEL_DIR=$(LINUX_DIR)
+
+$(TARGET_DIR)/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
+ mkdir -p $(TARGET_DIR)/sbin; cp $< $@
+
+iptables: $(TARGET_DIR)/sbin/iptables
+
+iptables-clean:
+ $(MAKE) -C $(IPTABLES_BUILD_DIR) clean
+
+iptables-mrproper: iptables-clean
+
+###########################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_IPTABLES)),y)
+TARGETS+=iptables
+endif