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 |
| 8 | SFE_IPV4_OBJS := sfe_ipv4.o sfe_ipv4_udp.o sfe_ipv4_tcp.o sfe_ipv4_icmp.o |
Tian Yang | afb0345 | 2022-01-13 18:53:13 -0800 | [diff] [blame] | 9 | SFE_IPV6_OBJS := sfe_ipv6.o sfe_ipv6_udp.o sfe_ipv6_tcp.o sfe_ipv6_icmp.o sfe_ipv6_tunipip6.o |
Guduri Prathyusha | 79a5fee | 2021-11-11 17:59:10 +0530 | [diff] [blame] | 10 | SFE_PPPOE_OBJS := sfe_pppoe.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 | |
Amitesh Anand | 63be37d | 2021-12-24 20:51:48 +0530 | [diff] [blame] | 38 | ifdef SFE_PROCESS_LOCAL_OUT |
| 39 | ccflags-y += -DSFE_PROCESS_LOCAL_OUT |
| 40 | endif |
Nitin Shetty | e6ed5b5 | 2021-12-27 14:50:11 +0530 | [diff] [blame^] | 41 | |
Ratheesh Kannoth | f4f26f4 | 2021-12-06 07:36:20 +0530 | [diff] [blame] | 42 | ccflags-y += -Werror -Wall -Iexports/ |