blob: 5c0c2a89842fc695ee31a2ea9051607261ae8549 [file] [log] [blame]
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +05301CAPWAP_ENABLED := $(strip $(if $(filter $(capwapmgr), y), 1 , 0))
2IPSEC_ENABLED := $(strip $(if $(filter $(ipsecmgr), y), 1 , 0))
3DTLS_ENABLED := $(strip $(if $(filter $(dtlsmgr), y), 1 , 0))
4
Arunkumar Tb3de78b2016-10-14 19:42:06 +05305ccflags-y := -Werror
6ccflags-y += -I$(obj)/include
Poddar,Sourav833f0e22016-10-26 00:59:08 +05307ccflags-y += -I$(obj)/../exports
Samarjeet Banerjee120a8852015-02-26 19:29:49 +05308ccflags-y += -DNSS_NL_DEBUG_LEVEL=4
Ram Chandra Jangir842dab42016-05-18 23:06:14 +05309ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053010
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053011ccflags-y += -DCONFIG_NSS_NLIPV4=1
mandrw6b934172016-01-14 18:45:01 +053012ccflags-y += -DCONFIG_NSS_NLIPV6=1
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050013ccflags-y += -DCONFIG_NSS_NLOAM=1
Himanshu Joshi37177a52019-05-29 16:46:26 +053014ccflags-y += -DCONFIG_NSS_NLGRE_REDIR_FAMILY=1
Wayne Tan851350e2020-01-08 14:48:38 -080015ccflags-y += -DCONFIG_NSS_NLETHRX=1
Wayne Tanf0909fc2020-01-08 14:53:01 -080016ccflags-y += -DCONFIG_NSS_NLEDMA=1
Wayne Tana727cb92020-01-09 16:07:34 -080017ccflags-y += -DCONFIG_NSS_NLDYNAMIC_INTERFACE=1
Wayne Tan25a7b132020-01-09 16:17:53 -080018ccflags-y += -DCONFIG_NSS_NLN2H=1
Wayne Tand8259772020-01-09 16:21:45 -080019ccflags-y += -DCONFIG_NSS_NLC2C_TX=1
Wayne Tana0ef0212020-01-09 16:24:58 -080020ccflags-y += -DCONFIG_NSS_NLC2C_RX=1
Wayne Tanbf72d2b2020-01-09 16:27:41 -080021ccflags-y += -DCONFIG_NSS_NLIPV4_REASM=1
Wayne Tan02466e12020-01-09 16:31:21 -080022ccflags-y += -DCONFIG_NSS_NLIPV6_REASM=1
Wayne Tanb74e09b2020-01-09 16:42:44 -080023ccflags-y += -DCONFIG_NSS_NLWIFILI=1
Wayne Tanc58febe2020-01-09 16:45:13 -080024ccflags-y += -DCONFIG_NSS_NLLSO_RX=1
Wayne Tan5b2df372020-01-09 17:25:02 -080025ccflags-y += -DCONFIG_NSS_NLMAP_T=1
Wayne Tan03716432020-01-09 17:29:13 -080026ccflags-y += -DCONFIG_NSS_NLPPPOE=1
Wayne Tanbcb64cf2020-01-09 17:32:05 -080027ccflags-y += -DCONFIG_NSS_NLL2TPV2=1
Wayne Tan56b3a912020-01-09 17:34:54 -080028ccflags-y += -DCONFIG_NSS_NLPPTP=1
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +053029ccflags-y += -DCONFIG_NSS_NLCAPWAP=${CAPWAP_ENABLED}
30ccflags-y += -DCONFIG_NSS_NLIPSEC=${IPSEC_ENABLED}
31ccflags-y += -DCONFIG_NSS_NLDTLS=${DTLS_ENABLED}
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053032
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053033qca-nss-netlink-objs := nss_nl.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053034qca-nss-netlink-objs += nss_nlgre_redir_family.o
35qca-nss-netlink-objs += nss_nlgre_redir_cmd.o
36qca-nss-netlink-objs += nss_nlgre_redir_cmn.o
Himanshu Joshia17f9252019-05-02 16:42:28 +053037qca-nss-netlink-objs += nss_nlgre_redir.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053038qca-nss-netlink-objs += nss_nlgre_redir_lag.o
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053039qca-nss-netlink-objs += nss_nlipv4.o
mandrw6b934172016-01-14 18:45:01 +053040qca-nss-netlink-objs += nss_nlipv6.o
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050041qca-nss-netlink-objs += nss_nloam.o
Wayne Tan851350e2020-01-08 14:48:38 -080042qca-nss-netlink-objs += nss_nlethrx.o
Wayne Tanf0909fc2020-01-08 14:53:01 -080043qca-nss-netlink-objs += nss_nledma.o
Wayne Tana727cb92020-01-09 16:07:34 -080044qca-nss-netlink-objs += nss_nldynamic_interface.o
Wayne Tan25a7b132020-01-09 16:17:53 -080045qca-nss-netlink-objs += nss_nln2h.o
Wayne Tand8259772020-01-09 16:21:45 -080046qca-nss-netlink-objs += nss_nlc2c_tx.o
Wayne Tana0ef0212020-01-09 16:24:58 -080047qca-nss-netlink-objs += nss_nlc2c_rx.o
Wayne Tanbf72d2b2020-01-09 16:27:41 -080048qca-nss-netlink-objs += nss_nlipv4_reasm.o
Wayne Tan02466e12020-01-09 16:31:21 -080049qca-nss-netlink-objs += nss_nlipv6_reasm.o
Wayne Tanb74e09b2020-01-09 16:42:44 -080050qca-nss-netlink-objs += nss_nlwifili.o
Wayne Tanc58febe2020-01-09 16:45:13 -080051qca-nss-netlink-objs += nss_nllso_rx.o
Wayne Tan5b2df372020-01-09 17:25:02 -080052qca-nss-netlink-objs += nss_nlmap_t.o
Wayne Tan03716432020-01-09 17:29:13 -080053qca-nss-netlink-objs += nss_nlpppoe.o
Wayne Tanbcb64cf2020-01-09 17:32:05 -080054qca-nss-netlink-objs += nss_nll2tpv2.o
Wayne Tan56b3a912020-01-09 17:34:54 -080055qca-nss-netlink-objs += nss_nlpptp.o
Poddar,Sourav833f0e22016-10-26 00:59:08 +053056
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +053057ifneq (,$(filter $(capwapmgr), y))
Himanshu Joshi9d120a92019-11-05 23:51:18 +053058qca-nss-netlink-objs += nss_nlcapwap.o
Himanshu Joshi9d120a92019-11-05 23:51:18 +053059endif
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +053060
61ifneq (,$(filter $(dtlsmgr), y))
Himanshu Joshief1d4272019-11-05 23:55:38 +053062qca-nss-netlink-objs += nss_nldtls.o
Himanshu Joshief1d4272019-11-05 23:55:38 +053063endif
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +053064
65ifneq (,$(filter $(ipsecmgr), y))
pavir450fd122020-03-30 16:39:49 +053066qca-nss-netlink-objs += nss_nlipsec.o
67endif
Samarjeet Banerjee7d16d092020-06-22 19:12:36 +053068
Himanshu Joshi9d120a92019-11-05 23:51:18 +053069obj-m += qca-nss-netlink.o