blob: 40fff0f8ccf7211b9ed6abffe0586993d26d05fd [file] [log] [blame]
Arunkumar Tb3de78b2016-10-14 19:42:06 +05301ccflags-y := -Werror
2ccflags-y += -I$(obj)/include
Poddar,Sourav833f0e22016-10-26 00:59:08 +05303ccflags-y += -I$(obj)/../exports
Samarjeet Banerjee120a8852015-02-26 19:29:49 +05304ccflags-y += -DNSS_NL_DEBUG_LEVEL=4
Ram Chandra Jangir842dab42016-05-18 23:06:14 +05305ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
Samarjeet Banerjee120a8852015-02-26 19:29:49 +05306
Samarjeet Banerjee120a8852015-02-26 19:29:49 +05307ccflags-y += -DCONFIG_NSS_NLIPV4=1
mandrw6b934172016-01-14 18:45:01 +05308ccflags-y += -DCONFIG_NSS_NLIPV6=1
Samarjeet Banerjee120a8852015-02-26 19:29:49 +05309ccflags-y += -DCONFIG_NSS_NLIPSEC=1
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050010ccflags-y += -DCONFIG_NSS_NLOAM=1
Himanshu Joshi37177a52019-05-29 16:46:26 +053011ccflags-y += -DCONFIG_NSS_NLGRE_REDIR_FAMILY=1
Wayne Tan851350e2020-01-08 14:48:38 -080012ccflags-y += -DCONFIG_NSS_NLETHRX=1
Wayne Tanf0909fc2020-01-08 14:53:01 -080013ccflags-y += -DCONFIG_NSS_NLEDMA=1
Wayne Tana727cb92020-01-09 16:07:34 -080014ccflags-y += -DCONFIG_NSS_NLDYNAMIC_INTERFACE=1
Wayne Tan25a7b132020-01-09 16:17:53 -080015ccflags-y += -DCONFIG_NSS_NLN2H=1
Wayne Tand8259772020-01-09 16:21:45 -080016ccflags-y += -DCONFIG_NSS_NLC2C_TX=1
Wayne Tana0ef0212020-01-09 16:24:58 -080017ccflags-y += -DCONFIG_NSS_NLC2C_RX=1
Wayne Tanbf72d2b2020-01-09 16:27:41 -080018ccflags-y += -DCONFIG_NSS_NLIPV4_REASM=1
Wayne Tan02466e12020-01-09 16:31:21 -080019ccflags-y += -DCONFIG_NSS_NLIPV6_REASM=1
Wayne Tanb74e09b2020-01-09 16:42:44 -080020ccflags-y += -DCONFIG_NSS_NLWIFILI=1
Wayne Tanc58febe2020-01-09 16:45:13 -080021ccflags-y += -DCONFIG_NSS_NLLSO_RX=1
Wayne Tan5b2df372020-01-09 17:25:02 -080022ccflags-y += -DCONFIG_NSS_NLMAP_T=1
Wayne Tan03716432020-01-09 17:29:13 -080023ccflags-y += -DCONFIG_NSS_NLPPPOE=1
Wayne Tanbcb64cf2020-01-09 17:32:05 -080024ccflags-y += -DCONFIG_NSS_NLL2TPV2=1
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053025
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053026qca-nss-netlink-objs := nss_nl.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053027qca-nss-netlink-objs += nss_nlgre_redir_family.o
28qca-nss-netlink-objs += nss_nlgre_redir_cmd.o
29qca-nss-netlink-objs += nss_nlgre_redir_cmn.o
Himanshu Joshia17f9252019-05-02 16:42:28 +053030qca-nss-netlink-objs += nss_nlgre_redir.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053031qca-nss-netlink-objs += nss_nlgre_redir_lag.o
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053032qca-nss-netlink-objs += nss_nlipv4.o
mandrw6b934172016-01-14 18:45:01 +053033qca-nss-netlink-objs += nss_nlipv6.o
mandrw960f2dd2015-07-08 12:55:02 +053034qca-nss-netlink-objs += nss_nlipsec.o
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050035qca-nss-netlink-objs += nss_nloam.o
Wayne Tan851350e2020-01-08 14:48:38 -080036qca-nss-netlink-objs += nss_nlethrx.o
Wayne Tanf0909fc2020-01-08 14:53:01 -080037qca-nss-netlink-objs += nss_nledma.o
Wayne Tana727cb92020-01-09 16:07:34 -080038qca-nss-netlink-objs += nss_nldynamic_interface.o
Wayne Tan25a7b132020-01-09 16:17:53 -080039qca-nss-netlink-objs += nss_nln2h.o
Wayne Tand8259772020-01-09 16:21:45 -080040qca-nss-netlink-objs += nss_nlc2c_tx.o
Wayne Tana0ef0212020-01-09 16:24:58 -080041qca-nss-netlink-objs += nss_nlc2c_rx.o
Wayne Tanbf72d2b2020-01-09 16:27:41 -080042qca-nss-netlink-objs += nss_nlipv4_reasm.o
Wayne Tan02466e12020-01-09 16:31:21 -080043qca-nss-netlink-objs += nss_nlipv6_reasm.o
Wayne Tanb74e09b2020-01-09 16:42:44 -080044qca-nss-netlink-objs += nss_nlwifili.o
Wayne Tanc58febe2020-01-09 16:45:13 -080045qca-nss-netlink-objs += nss_nllso_rx.o
Wayne Tan5b2df372020-01-09 17:25:02 -080046qca-nss-netlink-objs += nss_nlmap_t.o
Wayne Tan03716432020-01-09 17:29:13 -080047qca-nss-netlink-objs += nss_nlpppoe.o
Wayne Tanbcb64cf2020-01-09 17:32:05 -080048qca-nss-netlink-objs += nss_nll2tpv2.o
Poddar,Sourav833f0e22016-10-26 00:59:08 +053049
Himanshu Joshi9d120a92019-11-05 23:51:18 +053050CAPWAP_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-capwapmgr=y
51CAPWAP_CONFIG:=$(shell grep $(CAPWAP_ENABLED) $(TOPDIR)/.config)
52ifeq ($(CAPWAP_CONFIG),$(CAPWAP_ENABLED))
53ccflags-y += -DCONFIG_NSS_NLCAPWAP=1
54qca-nss-netlink-objs += nss_nlcapwap.o
55else
56ccflags-y += -DCONFIG_NSS_NLCAPWAP=0
57endif
Himanshu Joshief1d4272019-11-05 23:55:38 +053058DTLS_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-dtlsmgr=y
59DTLS_CONFIG:=$(shell grep $(DTLS_ENABLED) $(TOPDIR)/.config)
60ifeq ($(DTLS_CONFIG),$(DTLS_ENABLED))
61ccflags-y += -DCONFIG_NSS_NLDTLS=1
62qca-nss-netlink-objs += nss_nldtls.o
63else
64ccflags-y += -DCONFIG_NSS_NLDTLS=0
65endif
pavir2c4c7702019-05-31 19:26:17 +053066ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64))
Poddar,Sourav833f0e22016-10-26 00:59:08 +053067ccflags-y += -DCONFIG_NSS_NLCRYPTOV2=1
68qca-nss-netlink-objs += nss_nlcryptov2.o
69else
70ccflags-y += -DCONFIG_NSS_NLCRYPTO=1
71qca-nss-netlink-objs += nss_nlcrypto.o
72endif
Himanshu Joshi9d120a92019-11-05 23:51:18 +053073obj-m += qca-nss-netlink.o