diff options
Diffstat (limited to 'target/linux/realtek/files/net/rtl/fastpath/Makefile')
-rw-r--r-- | target/linux/realtek/files/net/rtl/fastpath/Makefile | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/target/linux/realtek/files/net/rtl/fastpath/Makefile b/target/linux/realtek/files/net/rtl/fastpath/Makefile index 4d68e2183..9e108e6f9 100644 --- a/target/linux/realtek/files/net/rtl/fastpath/Makefile +++ b/target/linux/realtek/files/net/rtl/fastpath/Makefile @@ -2,23 +2,31 @@ # Makefile for the fastpath modules on top of IPv4. # +include $(DIR_ROOT)/.config + #EXTRA_CFLAGS += -I $(DIR_LINUX)/drivers/net/rtl819x -EXTRA_CFLAGS += -I $(TOPDIR)/net +EXTRA_CFLAGS += -I $(DIR_LINUX)/net EXTRA_CFLAGS += -D__KERNEL__ #EXTRA_CFLAGS += -Wno-implicit -Werror -ifeq ($(CONFIG_RTL_8198),y) -TARGET = 98 -else -TARGET = 96C +ifeq ($(CONFIG_RTL_819XD),y) +TARGET = 9xD endif -ifeq ($(CONFIG_MODEL_RTL8198_MP),y) -TARGET = 98_MP +ifeq ($(CONFIG_RTL_8196E),y) +TARGET = 96E endif -ifeq ($(CONFIG_MODEL_RTL8196C_MP),y) -TARGET = 96C_MP +ifeq ($(CONFIG_RTL_8196C),y) +TARGET = 96E +endif + +ifeq ($(CONFIG_RTL_8198),y) +TARGET = 98 +endif + +ifeq "$(CONFIG_MODEL_RTL89xxC_SDK)" "y" +EXTRA_CFLAGS += --save-temps endif ifeq ($(CONFIG_RTL_IPTABLES_FAST_PATH),m) @@ -37,6 +45,9 @@ obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/fast_filter.o else obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/filter_v2.o endif +ifeq ($(CONFIG_RTL_FAST_PPPOE), y) +obj-$(CONFIG_RTL_IPTABLES_FAST_PATH) += $(TARGET)/fast_pppoe_core.o +endif endif obj-$(CONFIG_RTL_FAST_BRIDGE) += fast_br.o |