blob: 6ef50fc2b1cd04916a811085f427c128a52ee540 [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
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053011
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053012qca-nss-netlink-objs := nss_nl.o
Samarjeet Banerjee120a8852015-02-26 19:29:49 +053013qca-nss-netlink-objs += nss_nlipv4.o
mandrw6b934172016-01-14 18:45:01 +053014qca-nss-netlink-objs += nss_nlipv6.o
mandrw960f2dd2015-07-08 12:55:02 +053015qca-nss-netlink-objs += nss_nlipsec.o
Sivanesan Rajapupathia74da772016-01-06 16:21:43 -050016qca-nss-netlink-objs += nss_nloam.o
Poddar,Sourav833f0e22016-10-26 00:59:08 +053017obj-m += qca-nss-netlink.o
18
19ifeq (ipq807x, $(findstring ipq807x, $(SoC)))
20ccflags-y += -DCONFIG_NSS_NLCRYPTOV2=1
21qca-nss-netlink-objs += nss_nlcryptov2.o
22else
23ccflags-y += -DCONFIG_NSS_NLCRYPTO=1
24qca-nss-netlink-objs += nss_nlcrypto.o
25endif