blob: c2ed18d256e7f6abbc0eedef2bf8fbcd282ba75c [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
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053013
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053014qca-nss-netlink-objs := nss_nl.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053015qca-nss-netlink-objs += nss_nlgre_redir_family.o
16qca-nss-netlink-objs += nss_nlgre_redir_cmd.o
17qca-nss-netlink-objs += nss_nlgre_redir_cmn.o
Himanshu Joshia17f9252019-05-02 16:42:28 +053018qca-nss-netlink-objs += nss_nlgre_redir.o
Himanshu Joshi37177a52019-05-29 16:46:26 +053019qca-nss-netlink-objs += nss_nlgre_redir_lag.o
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053020qca-nss-netlink-objs += nss_nlipv4.o
mandrw6b934172016-01-14 18:45:01 +053021qca-nss-netlink-objs += nss_nlipv6.o
mandrw960f2dd2015-07-08 12:55:02 +053022qca-nss-netlink-objs += nss_nlipsec.o
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050023qca-nss-netlink-objs += nss_nloam.o
Wayne Tan851350e2020-01-08 14:48:38 -080024qca-nss-netlink-objs += nss_nlethrx.o
Poddar,Sourav833f0e22016-10-26 00:59:08 +053025
Himanshu Joshi9d120a92019-11-05 23:51:18 +053026CAPWAP_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-capwapmgr=y
27CAPWAP_CONFIG:=$(shell grep $(CAPWAP_ENABLED) $(TOPDIR)/.config)
28ifeq ($(CAPWAP_CONFIG),$(CAPWAP_ENABLED))
29ccflags-y += -DCONFIG_NSS_NLCAPWAP=1
30qca-nss-netlink-objs += nss_nlcapwap.o
31else
32ccflags-y += -DCONFIG_NSS_NLCAPWAP=0
33endif
Himanshu Joshief1d4272019-11-05 23:55:38 +053034DTLS_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-dtlsmgr=y
35DTLS_CONFIG:=$(shell grep $(DTLS_ENABLED) $(TOPDIR)/.config)
36ifeq ($(DTLS_CONFIG),$(DTLS_ENABLED))
37ccflags-y += -DCONFIG_NSS_NLDTLS=1
38qca-nss-netlink-objs += nss_nldtls.o
39else
40ccflags-y += -DCONFIG_NSS_NLDTLS=0
41endif
pavir2c4c7702019-05-31 19:26:17 +053042ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64))
Poddar,Sourav833f0e22016-10-26 00:59:08 +053043ccflags-y += -DCONFIG_NSS_NLCRYPTOV2=1
44qca-nss-netlink-objs += nss_nlcryptov2.o
45else
46ccflags-y += -DCONFIG_NSS_NLCRYPTO=1
47qca-nss-netlink-objs += nss_nlcrypto.o
48endif
Himanshu Joshi9d120a92019-11-05 23:51:18 +053049obj-m += qca-nss-netlink.o