Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 1 | CAPWAP_ENABLED := $(strip $(if $(filter $(capwapmgr), y), 1 , 0)) |
| 2 | IPSEC_ENABLED := $(strip $(if $(filter $(ipsecmgr), y), 1 , 0)) |
| 3 | DTLS_ENABLED := $(strip $(if $(filter $(dtlsmgr), y), 1 , 0)) |
| 4 | |
Arunkumar T | b3de78b | 2016-10-14 19:42:06 +0530 | [diff] [blame] | 5 | ccflags-y := -Werror |
| 6 | ccflags-y += -I$(obj)/include |
Poddar,Sourav | 833f0e2 | 2016-10-26 00:59:08 +0530 | [diff] [blame] | 7 | ccflags-y += -I$(obj)/../exports |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 8 | ccflags-y += -DNSS_NL_DEBUG_LEVEL=4 |
Ram Chandra Jangir | 842dab4 | 2016-05-18 23:06:14 +0530 | [diff] [blame] | 9 | ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)" |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 10 | |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 11 | ccflags-y += -DCONFIG_NSS_NLIPV4=1 |
mandrw | 6b93417 | 2016-01-14 18:45:01 +0530 | [diff] [blame] | 12 | ccflags-y += -DCONFIG_NSS_NLIPV6=1 |
Sivanesan Rajapupathi | a74da77 | 2016-01-06 16:21:43 -0500 | [diff] [blame] | 13 | ccflags-y += -DCONFIG_NSS_NLOAM=1 |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 14 | ccflags-y += -DCONFIG_NSS_NLGRE_REDIR_FAMILY=1 |
Wayne Tan | 851350e | 2020-01-08 14:48:38 -0800 | [diff] [blame] | 15 | ccflags-y += -DCONFIG_NSS_NLETHRX=1 |
Wayne Tan | f0909fc | 2020-01-08 14:53:01 -0800 | [diff] [blame] | 16 | ccflags-y += -DCONFIG_NSS_NLEDMA=1 |
Wayne Tan | a727cb9 | 2020-01-09 16:07:34 -0800 | [diff] [blame] | 17 | ccflags-y += -DCONFIG_NSS_NLDYNAMIC_INTERFACE=1 |
Wayne Tan | 25a7b13 | 2020-01-09 16:17:53 -0800 | [diff] [blame] | 18 | ccflags-y += -DCONFIG_NSS_NLN2H=1 |
Wayne Tan | d825977 | 2020-01-09 16:21:45 -0800 | [diff] [blame] | 19 | ccflags-y += -DCONFIG_NSS_NLC2C_TX=1 |
Wayne Tan | a0ef021 | 2020-01-09 16:24:58 -0800 | [diff] [blame] | 20 | ccflags-y += -DCONFIG_NSS_NLC2C_RX=1 |
Wayne Tan | bf72d2b | 2020-01-09 16:27:41 -0800 | [diff] [blame] | 21 | ccflags-y += -DCONFIG_NSS_NLIPV4_REASM=1 |
Wayne Tan | 02466e1 | 2020-01-09 16:31:21 -0800 | [diff] [blame] | 22 | ccflags-y += -DCONFIG_NSS_NLIPV6_REASM=1 |
Wayne Tan | b74e09b | 2020-01-09 16:42:44 -0800 | [diff] [blame] | 23 | ccflags-y += -DCONFIG_NSS_NLWIFILI=1 |
Wayne Tan | c58febe | 2020-01-09 16:45:13 -0800 | [diff] [blame] | 24 | ccflags-y += -DCONFIG_NSS_NLLSO_RX=1 |
Wayne Tan | 5b2df37 | 2020-01-09 17:25:02 -0800 | [diff] [blame] | 25 | ccflags-y += -DCONFIG_NSS_NLMAP_T=1 |
Wayne Tan | 0371643 | 2020-01-09 17:29:13 -0800 | [diff] [blame] | 26 | ccflags-y += -DCONFIG_NSS_NLPPPOE=1 |
Wayne Tan | bcb64cf | 2020-01-09 17:32:05 -0800 | [diff] [blame] | 27 | ccflags-y += -DCONFIG_NSS_NLL2TPV2=1 |
Wayne Tan | 56b3a91 | 2020-01-09 17:34:54 -0800 | [diff] [blame] | 28 | ccflags-y += -DCONFIG_NSS_NLPPTP=1 |
Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 29 | ccflags-y += -DCONFIG_NSS_NLCAPWAP=${CAPWAP_ENABLED} |
| 30 | ccflags-y += -DCONFIG_NSS_NLIPSEC=${IPSEC_ENABLED} |
| 31 | ccflags-y += -DCONFIG_NSS_NLDTLS=${DTLS_ENABLED} |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 32 | |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 33 | qca-nss-netlink-objs := nss_nl.o |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 34 | qca-nss-netlink-objs += nss_nlgre_redir_family.o |
| 35 | qca-nss-netlink-objs += nss_nlgre_redir_cmd.o |
| 36 | qca-nss-netlink-objs += nss_nlgre_redir_cmn.o |
Himanshu Joshi | a17f925 | 2019-05-02 16:42:28 +0530 | [diff] [blame] | 37 | qca-nss-netlink-objs += nss_nlgre_redir.o |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 38 | qca-nss-netlink-objs += nss_nlgre_redir_lag.o |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 39 | qca-nss-netlink-objs += nss_nlipv4.o |
mandrw | 6b93417 | 2016-01-14 18:45:01 +0530 | [diff] [blame] | 40 | qca-nss-netlink-objs += nss_nlipv6.o |
Sivanesan Rajapupathi | a74da77 | 2016-01-06 16:21:43 -0500 | [diff] [blame] | 41 | qca-nss-netlink-objs += nss_nloam.o |
Wayne Tan | 851350e | 2020-01-08 14:48:38 -0800 | [diff] [blame] | 42 | qca-nss-netlink-objs += nss_nlethrx.o |
Wayne Tan | f0909fc | 2020-01-08 14:53:01 -0800 | [diff] [blame] | 43 | qca-nss-netlink-objs += nss_nledma.o |
Wayne Tan | a727cb9 | 2020-01-09 16:07:34 -0800 | [diff] [blame] | 44 | qca-nss-netlink-objs += nss_nldynamic_interface.o |
Wayne Tan | 25a7b13 | 2020-01-09 16:17:53 -0800 | [diff] [blame] | 45 | qca-nss-netlink-objs += nss_nln2h.o |
Wayne Tan | d825977 | 2020-01-09 16:21:45 -0800 | [diff] [blame] | 46 | qca-nss-netlink-objs += nss_nlc2c_tx.o |
Wayne Tan | a0ef021 | 2020-01-09 16:24:58 -0800 | [diff] [blame] | 47 | qca-nss-netlink-objs += nss_nlc2c_rx.o |
Wayne Tan | bf72d2b | 2020-01-09 16:27:41 -0800 | [diff] [blame] | 48 | qca-nss-netlink-objs += nss_nlipv4_reasm.o |
Wayne Tan | 02466e1 | 2020-01-09 16:31:21 -0800 | [diff] [blame] | 49 | qca-nss-netlink-objs += nss_nlipv6_reasm.o |
Wayne Tan | b74e09b | 2020-01-09 16:42:44 -0800 | [diff] [blame] | 50 | qca-nss-netlink-objs += nss_nlwifili.o |
Wayne Tan | c58febe | 2020-01-09 16:45:13 -0800 | [diff] [blame] | 51 | qca-nss-netlink-objs += nss_nllso_rx.o |
Wayne Tan | 5b2df37 | 2020-01-09 17:25:02 -0800 | [diff] [blame] | 52 | qca-nss-netlink-objs += nss_nlmap_t.o |
Wayne Tan | 0371643 | 2020-01-09 17:29:13 -0800 | [diff] [blame] | 53 | qca-nss-netlink-objs += nss_nlpppoe.o |
Wayne Tan | bcb64cf | 2020-01-09 17:32:05 -0800 | [diff] [blame] | 54 | qca-nss-netlink-objs += nss_nll2tpv2.o |
Wayne Tan | 56b3a91 | 2020-01-09 17:34:54 -0800 | [diff] [blame] | 55 | qca-nss-netlink-objs += nss_nlpptp.o |
Poddar,Sourav | 833f0e2 | 2016-10-26 00:59:08 +0530 | [diff] [blame] | 56 | |
Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 57 | ifneq (,$(filter $(capwapmgr), y)) |
Himanshu Joshi | 9d120a9 | 2019-11-05 23:51:18 +0530 | [diff] [blame] | 58 | qca-nss-netlink-objs += nss_nlcapwap.o |
Himanshu Joshi | 9d120a9 | 2019-11-05 23:51:18 +0530 | [diff] [blame] | 59 | endif |
Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 60 | |
| 61 | ifneq (,$(filter $(dtlsmgr), y)) |
Himanshu Joshi | ef1d427 | 2019-11-05 23:55:38 +0530 | [diff] [blame] | 62 | qca-nss-netlink-objs += nss_nldtls.o |
Himanshu Joshi | ef1d427 | 2019-11-05 23:55:38 +0530 | [diff] [blame] | 63 | endif |
Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 64 | |
| 65 | ifneq (,$(filter $(ipsecmgr), y)) |
pavir | 450fd12 | 2020-03-30 16:39:49 +0530 | [diff] [blame] | 66 | qca-nss-netlink-objs += nss_nlipsec.o |
| 67 | endif |
Samarjeet Banerjee | 7d16d09 | 2020-06-22 19:12:36 +0530 | [diff] [blame^] | 68 | |
Himanshu Joshi | 9d120a9 | 2019-11-05 23:51:18 +0530 | [diff] [blame] | 69 | obj-m += qca-nss-netlink.o |