Ratheesh Kannoth | 24fb1db | 2021-10-20 07:28:06 +0530 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Shortcut FE. |
| 3 | # |
Suruchi Agarwal | 2f098c9 | 2021-09-21 16:16:38 -0700 | [diff] [blame] | 4 | |
Nitin Shetty | e6ed5b5 | 2021-12-27 14:50:11 +0530 | [diff] [blame] | 5 | KERNELVERSION := $(word 1, $(subst ., ,$(KERNELVERSION))).$(word 2, $(subst ., ,$(KERNELVERSION))) |
| 6 | |
Ratheesh Kannoth | 6307bec | 2021-11-25 08:26:39 +0530 | [diff] [blame] | 7 | SFE_BASE_OBJS := sfe.o sfe_init.o |
Suhas N Bhargav | 592e64c | 2021-11-12 16:53:08 +0530 | [diff] [blame] | 8 | SFE_IPV4_OBJS := sfe_ipv4.o sfe_ipv4_udp.o sfe_ipv4_tcp.o sfe_ipv4_icmp.o sfe_ipv4_tun6rd.o sfe_ipv4_pppoe_br.o sfe_ipv4_esp.o |
| 9 | SFE_IPV6_OBJS := sfe_ipv6.o sfe_ipv6_udp.o sfe_ipv6_tcp.o sfe_ipv6_icmp.o sfe_ipv6_tunipip6.o sfe_ipv6_pppoe_br.o sfe_ipv6_esp.o |
Wayne Tan | 1cabbf1 | 2022-05-01 13:01:45 -0700 | [diff] [blame] | 10 | SFE_PPPOE_OBJS := sfe_pppoe.o sfe_pppoe_mgr.o |
Ratheesh Kannoth | 6307bec | 2021-11-25 08:26:39 +0530 | [diff] [blame] | 11 | |
Nitin Shetty | e6ed5b5 | 2021-12-27 14:50:11 +0530 | [diff] [blame] | 12 | |
| 13 | ifeq ($(findstring 4.4, $(KERNELVERSION)),) |
| 14 | SFE_IPV4_OBJS += sfe_ipv4_gre.o |
| 15 | SFE_IPV6_OBJS += sfe_ipv6_gre.o |
| 16 | ccflags-y += -DSFE_GRE_TUN_ENABLE |
| 17 | endif |
| 18 | |
| 19 | |
Ratheesh Kannoth | 24fb1db | 2021-10-20 07:28:06 +0530 | [diff] [blame] | 20 | obj-m += qca-nss-sfe.o |
Suruchi Agarwal | 2f098c9 | 2021-09-21 16:16:38 -0700 | [diff] [blame] | 21 | |
Ratheesh Kannoth | 6307bec | 2021-11-25 08:26:39 +0530 | [diff] [blame] | 22 | # |
| 23 | # Base files |
| 24 | # |
| 25 | qca-nss-sfe-objs := $(SFE_BASE_OBJS) |
| 26 | |
| 27 | # |
| 28 | # IPv4 files |
| 29 | # |
| 30 | qca-nss-sfe-objs += $(SFE_IPV4_OBJS) |
Guduri Prathyusha | 79a5fee | 2021-11-11 17:59:10 +0530 | [diff] [blame] | 31 | qca-nss-sfe-objs += $(SFE_PPPOE_OBJS) |
Suruchi Agarwal | 2f098c9 | 2021-09-21 16:16:38 -0700 | [diff] [blame] | 32 | |
Ratheesh Kannoth | 24fb1db | 2021-10-20 07:28:06 +0530 | [diff] [blame] | 33 | ifdef SFE_SUPPORT_IPV6 |
Ratheesh Kannoth | 6307bec | 2021-11-25 08:26:39 +0530 | [diff] [blame] | 34 | qca-nss-sfe-objs += $(SFE_IPV6_OBJS) |
Ratheesh Kannoth | 24fb1db | 2021-10-20 07:28:06 +0530 | [diff] [blame] | 35 | ccflags-y += -DSFE_SUPPORT_IPV6 |
| 36 | endif |
Suruchi Agarwal | 2f098c9 | 2021-09-21 16:16:38 -0700 | [diff] [blame] | 37 | |
Sourav Poddar | 7297812 | 2022-08-09 12:44:50 +0530 | [diff] [blame] | 38 | ifdef SFE_RFS_SUPPORTED |
| 39 | ccflags-y += -DSFE_RFS_SUPPORTED |
| 40 | endif |
| 41 | |
Amitesh Anand | 63be37d | 2021-12-24 20:51:48 +0530 | [diff] [blame] | 42 | ifdef SFE_PROCESS_LOCAL_OUT |
| 43 | ccflags-y += -DSFE_PROCESS_LOCAL_OUT |
| 44 | endif |
Nitin Shetty | e6ed5b5 | 2021-12-27 14:50:11 +0530 | [diff] [blame] | 45 | |
Ratheesh Kannoth | f4f26f4 | 2021-12-06 07:36:20 +0530 | [diff] [blame] | 46 | ccflags-y += -Werror -Wall -Iexports/ |