blob: 6e1e3c07b17f303772c057a8dbf7ca2433505c07 [file] [log] [blame]
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +05301# ###################################################
2# # Makefile for the NSS driver
3# ###################################################
4
Abhishek Rastogibc74e432013-04-02 10:28:22 +05305obj-m += qca-nss-drv.o
Sol Kavy2783c072014-04-05 12:53:13 -07006
Sol Kavy879eb8b2014-04-07 19:11:31 -07007#
8# List the files that belong to the driver in alphabetical order.
9#
Sol Kavy2783c072014-04-05 12:53:13 -070010qca-nss-drv-objs := \
Sol Kavy2783c072014-04-05 12:53:13 -070011 nss_cmn.o \
12 nss_core.o \
Guojun Jin1cb79522015-06-22 22:34:22 -070013 nss_coredump.o \
Samarjeet Banerjeede86b802014-04-10 02:59:49 +053014 nss_crypto.o \
Tushar Mathurff8741b2015-12-02 20:28:59 +053015 nss_dtls.o \
Ankit Dhanuka9b430252014-08-12 13:53:41 +053016 nss_dynamic_interface.o \
Ankit Dhanuka607508d2014-08-21 20:20:34 +053017 nss_gre_redir.o \
Sol Kavya55c9a52014-04-08 14:33:16 -070018 nss_if.o \
Samarjeet Banerjeed99d9d02014-04-08 18:51:00 +053019 nss_init.o \
20 nss_ipsec.o \
Sol Kavy2783c072014-04-05 12:53:13 -070021 nss_ipv4.o \
Suruchi Agarwale3940e72016-07-06 15:56:51 -070022 nss_ipv4_log.o \
Selin Dag6d9b0c12014-11-04 18:27:21 -080023 nss_ipv4_reasm.o \
Sol Kavy879eb8b2014-04-07 19:11:31 -070024 nss_ipv6.o \
Suruchi Agarwale3940e72016-07-06 15:56:51 -070025 nss_ipv6_log.o \
Selin Dag60a2f5b2015-06-29 14:39:49 -070026 nss_ipv6_reasm.o \
Sol Kavy2783c072014-04-05 12:53:13 -070027 nss_lag.o \
Thomas Wuc3e382c2014-10-29 15:35:13 -070028 nss_lso_rx.o \
Sol Kavy2783c072014-04-05 12:53:13 -070029 nss_phys_if.o \
30 nss_pm.o \
Ankit Dhanuka2ae20a82014-08-25 18:04:00 +053031 nss_sjack.o \
Sol Kavy2783c072014-04-05 12:53:13 -070032 nss_stats.o \
33 nss_tun6rd.o \
Shyam Sunder66e889d2015-11-02 15:31:20 +053034 nss_pptp.o \
ratheesh kannoth7af985d2015-06-24 15:08:40 +053035 nss_l2tpv2.o \
ratheesh kannotha1245c32015-11-04 16:45:43 +053036 nss_map_t.o \
Sol Kavy2783c072014-04-05 12:53:13 -070037 nss_tunipip6.o \
Sakthi Vignesh Radhakrishnanef918492014-04-07 14:24:19 -070038 nss_virt_if.o \
Ankit Dhanukaa1569ce2014-05-13 19:58:06 +053039 nss_shaper.o \
Saurabh Misra09dddeb2014-09-30 16:38:07 -070040 nss_pppoe.o \
Stephen Wang9779d952015-10-28 11:39:07 -070041 nss_portid.o \
Sundarajan Srinivasanf1e57462014-09-17 15:24:01 -070042 nss_capwap.o \
43 nss_eth_rx.o \
Stephen Wang38e89bc2014-11-06 11:34:45 -080044 nss_n2h.o \
Sivanesan Rajapupathi5c31b212016-01-06 16:21:57 -050045 nss_oam.o \
Sundarajan Srinivasandedd8e42014-10-06 11:59:34 -070046 nss_data_plane.o \
Bharath M Kumarcc666e92014-12-24 19:17:28 +053047 nss_log.o \
48 nss_wifi.o \
Sundarajan Srinivasan273d9002015-03-03 15:43:16 -080049 nss_wifi_vdev.o \
50 nss_wifi_if.o
Sol Kavy2783c072014-04-05 12:53:13 -070051
52#
53# TODO: Deprecated files should be removed before merge
54#
55qca-nss-drv-objs += \
Sol Kavy2783c072014-04-05 12:53:13 -070056 nss_tx_rx_virt_if.o
57
Bharath M Kumarcc666e92014-12-24 19:17:28 +053058ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_PKT_STATS_ENABLED=1
Murat Sezginc5cbfed2015-01-16 17:32:43 -080059ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_PPP_SUPPORT=1
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053060
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080061ifneq ($(findstring 3.4, $(KERNELVERSION)),)
Ankit Dhanuka4ac3c9f2015-08-10 16:03:00 +053062NSS_CCFLAGS = -DNSS_DT_SUPPORT=0 -DNSS_FW_DBG_SUPPORT=1 -DNSS_PM_SUPPORT=1 -DNSS_EMPTY_BUFFER_SIZE=1984
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080063else
Radha krishna Simha Jiguru69224582015-11-04 15:28:58 +053064NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 -DNSS_EMPTY_BUFFER_SIZE=1984
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080065ccflags-y += -I$(obj)
66endif
67
ratheesh kannotha1245c32015-11-04 16:45:43 +053068# Only the 3.14 Kernel implements fabric scaling framework and map-t
Stephen Wang463f1cf2016-03-29 15:25:51 -070069ifneq ($(findstring 3.14, $(KERNELVERSION)),)
ratheesh kannotha1245c32015-11-04 16:45:43 +053070NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 -DNSS_MAP_T_SUPPORT=1
Stephen Wang463f1cf2016-03-29 15:25:51 -070071else
ratheesh kannotha1245c32015-11-04 16:45:43 +053072NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 -DNSS_MAP_T_SUPPORT=0
Stephen Wang463f1cf2016-03-29 15:25:51 -070073endif
74
Arunkumar T28b2d742015-06-16 22:15:58 +053075# Disable Frequency scaling
76ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y"
77ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0
78else
79qca-nss-drv-objs += nss_freq.o
80ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1
81endif
82
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080083ccflags-y += $(NSS_CCFLAGS)
84
85export NSS_CCFLAGS
86
Guojun Jin4b3707b2014-05-16 15:55:23 -070087qca-nss-drv-objs += nss_profiler.o
Saurabh Misra70057f02014-10-16 12:22:53 -070088
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053089obj ?= .
Abhishek Rastogibc74e432013-04-02 10:28:22 +053090
Abhishek Rastogibc74e432013-04-02 10:28:22 +053091qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o
Abhishek Rastogi38cffff2013-06-02 11:25:47 +053092ccflags-y += -I$(obj)/nss_hal/ipq806x