Arunkumar T | b3de78b | 2016-10-14 19:42:06 +0530 | [diff] [blame] | 1 | ccflags-y := -Werror |
| 2 | ccflags-y += -I$(obj)/include |
Poddar,Sourav | 833f0e2 | 2016-10-26 00:59:08 +0530 | [diff] [blame] | 3 | ccflags-y += -I$(obj)/../exports |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 4 | ccflags-y += -DNSS_NL_DEBUG_LEVEL=4 |
Ram Chandra Jangir | 842dab4 | 2016-05-18 23:06:14 +0530 | [diff] [blame] | 5 | ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)" |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 6 | |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 7 | ccflags-y += -DCONFIG_NSS_NLIPV4=1 |
mandrw | 6b93417 | 2016-01-14 18:45:01 +0530 | [diff] [blame] | 8 | ccflags-y += -DCONFIG_NSS_NLIPV6=1 |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 9 | ccflags-y += -DCONFIG_NSS_NLIPSEC=1 |
Sivanesan Rajapupathi | a74da77 | 2016-01-06 16:21:43 -0500 | [diff] [blame] | 10 | ccflags-y += -DCONFIG_NSS_NLOAM=1 |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 11 | ccflags-y += -DCONFIG_NSS_NLGRE_REDIR_FAMILY=1 |
Wayne Tan | 851350e | 2020-01-08 14:48:38 -0800 | [diff] [blame^] | 12 | ccflags-y += -DCONFIG_NSS_NLETHRX=1 |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 13 | |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 14 | qca-nss-netlink-objs := nss_nl.o |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 15 | qca-nss-netlink-objs += nss_nlgre_redir_family.o |
| 16 | qca-nss-netlink-objs += nss_nlgre_redir_cmd.o |
| 17 | qca-nss-netlink-objs += nss_nlgre_redir_cmn.o |
Himanshu Joshi | a17f925 | 2019-05-02 16:42:28 +0530 | [diff] [blame] | 18 | qca-nss-netlink-objs += nss_nlgre_redir.o |
Himanshu Joshi | 37177a5 | 2019-05-29 16:46:26 +0530 | [diff] [blame] | 19 | qca-nss-netlink-objs += nss_nlgre_redir_lag.o |
Samarjeet Banerjee | 120a885 | 2015-02-26 19:29:49 +0530 | [diff] [blame] | 20 | qca-nss-netlink-objs += nss_nlipv4.o |
mandrw | 6b93417 | 2016-01-14 18:45:01 +0530 | [diff] [blame] | 21 | qca-nss-netlink-objs += nss_nlipv6.o |
mandrw | 960f2dd | 2015-07-08 12:55:02 +0530 | [diff] [blame] | 22 | qca-nss-netlink-objs += nss_nlipsec.o |
Sivanesan Rajapupathi | a74da77 | 2016-01-06 16:21:43 -0500 | [diff] [blame] | 23 | qca-nss-netlink-objs += nss_nloam.o |
Wayne Tan | 851350e | 2020-01-08 14:48:38 -0800 | [diff] [blame^] | 24 | qca-nss-netlink-objs += nss_nlethrx.o |
Poddar,Sourav | 833f0e2 | 2016-10-26 00:59:08 +0530 | [diff] [blame] | 25 | |
Himanshu Joshi | 9d120a9 | 2019-11-05 23:51:18 +0530 | [diff] [blame] | 26 | CAPWAP_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-capwapmgr=y |
| 27 | CAPWAP_CONFIG:=$(shell grep $(CAPWAP_ENABLED) $(TOPDIR)/.config) |
| 28 | ifeq ($(CAPWAP_CONFIG),$(CAPWAP_ENABLED)) |
| 29 | ccflags-y += -DCONFIG_NSS_NLCAPWAP=1 |
| 30 | qca-nss-netlink-objs += nss_nlcapwap.o |
| 31 | else |
| 32 | ccflags-y += -DCONFIG_NSS_NLCAPWAP=0 |
| 33 | endif |
Himanshu Joshi | ef1d427 | 2019-11-05 23:55:38 +0530 | [diff] [blame] | 34 | DTLS_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-dtlsmgr=y |
| 35 | DTLS_CONFIG:=$(shell grep $(DTLS_ENABLED) $(TOPDIR)/.config) |
| 36 | ifeq ($(DTLS_CONFIG),$(DTLS_ENABLED)) |
| 37 | ccflags-y += -DCONFIG_NSS_NLDTLS=1 |
| 38 | qca-nss-netlink-objs += nss_nldtls.o |
| 39 | else |
| 40 | ccflags-y += -DCONFIG_NSS_NLDTLS=0 |
| 41 | endif |
pavir | 2c4c770 | 2019-05-31 19:26:17 +0530 | [diff] [blame] | 42 | ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64)) |
Poddar,Sourav | 833f0e2 | 2016-10-26 00:59:08 +0530 | [diff] [blame] | 43 | ccflags-y += -DCONFIG_NSS_NLCRYPTOV2=1 |
| 44 | qca-nss-netlink-objs += nss_nlcryptov2.o |
| 45 | else |
| 46 | ccflags-y += -DCONFIG_NSS_NLCRYPTO=1 |
| 47 | qca-nss-netlink-objs += nss_nlcrypto.o |
| 48 | endif |
Himanshu Joshi | 9d120a9 | 2019-11-05 23:51:18 +0530 | [diff] [blame] | 49 | obj-m += qca-nss-netlink.o |