From 5deb3317cb51ac52de922bb55f8492624018906d Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Thu, 13 Sep 2012 00:40:35 +0300 Subject: Add realtek target files Signed-off-by: Roman Yeryomin --- .../linux/realtek/files/net/rtl/fastpath/Makefile | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 target/linux/realtek/files/net/rtl/fastpath/Makefile (limited to 'target/linux/realtek/files/net/rtl/fastpath/Makefile') diff --git a/target/linux/realtek/files/net/rtl/fastpath/Makefile b/target/linux/realtek/files/net/rtl/fastpath/Makefile new file mode 100644 index 000000000..4d68e2183 --- /dev/null +++ b/target/linux/realtek/files/net/rtl/fastpath/Makefile @@ -0,0 +1,47 @@ +# +# Makefile for the fastpath modules on top of IPv4. +# + +#EXTRA_CFLAGS += -I $(DIR_LINUX)/drivers/net/rtl819x +EXTRA_CFLAGS += -I $(TOPDIR)/net +EXTRA_CFLAGS += -D__KERNEL__ +#EXTRA_CFLAGS += -Wno-implicit -Werror + +ifeq ($(CONFIG_RTL_8198),y) +TARGET = 98 +else +TARGET = 96C +endif + +ifeq ($(CONFIG_MODEL_RTL8198_MP),y) +TARGET = 98_MP +endif + +ifeq ($(CONFIG_MODEL_RTL8196C_MP),y) +TARGET = 96C_MP +endif + +ifeq ($(CONFIG_RTL_IPTABLES_FAST_PATH),m) +EXTRA_CFLAGS += -DCONFIG_RTK_IPTABLES_FAST_PATH +EXTRA_CFLAGS += -DCONFIG_FAST_PATH_MODULE + +FASTPATH_OBJ=$(TARGET)/fastpath_core.o fastpath_common.o $(TARGET)/filter.o $(TARGET)/fast_pptp_core.o $(TARGET)/fast_l2tp_core.o +FASTPATH_MODULE=$(TARGET)/fastpath.o +obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(FASTPATH_MODULE) +fastpath-objs := $(FASTPATH_OBJ) + +else +obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/fastpath_core.o fastpath_common.o $(TARGET)/filter.o $(TARGET)/fast_pptp_core.o $(TARGET)/fast_l2tp_core.o +ifeq ($(CONFIG_RTL_FAST_FILTER), y) +obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/fast_filter.o +else +obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/filter_v2.o +endif +endif + +obj-$(CONFIG_RTL_FAST_BRIDGE) += fast_br.o + +clean: + rm -rf *.o *.ko *.mod.c + +EXTRA_AFLAGS += $(EXTRA_CFLAGS) -- cgit v1.2.3