Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 1 | # ################################################### |
| 2 | # # Makefile for the NSS driver |
| 3 | # ################################################### |
| 4 | |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 5 | obj-m += qca-nss-drv.o |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 6 | |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 7 | # |
| 8 | # List the files that belong to the driver in alphabetical order. |
| 9 | # |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 10 | qca-nss-drv-objs := \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 11 | nss_cmn.o \ |
| 12 | nss_core.o \ |
Guojun Jin | 1cb7952 | 2015-06-22 22:34:22 -0700 | [diff] [blame] | 13 | nss_coredump.o \ |
Samarjeet Banerjee | de86b80 | 2014-04-10 02:59:49 +0530 | [diff] [blame] | 14 | nss_crypto.o \ |
Tushar Mathur | ff8741b | 2015-12-02 20:28:59 +0530 | [diff] [blame] | 15 | nss_dtls.o \ |
Ankit Dhanuka | 9b43025 | 2014-08-12 13:53:41 +0530 | [diff] [blame] | 16 | nss_dynamic_interface.o \ |
Ankit Dhanuka | 607508d | 2014-08-21 20:20:34 +0530 | [diff] [blame] | 17 | nss_gre_redir.o \ |
Sol Kavy | a55c9a5 | 2014-04-08 14:33:16 -0700 | [diff] [blame] | 18 | nss_if.o \ |
Samarjeet Banerjee | d99d9d0 | 2014-04-08 18:51:00 +0530 | [diff] [blame] | 19 | nss_init.o \ |
| 20 | nss_ipsec.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 21 | nss_ipv4.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame^] | 22 | nss_ipv4_log.o \ |
Selin Dag | 6d9b0c1 | 2014-11-04 18:27:21 -0800 | [diff] [blame] | 23 | nss_ipv4_reasm.o \ |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 24 | nss_ipv6.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame^] | 25 | nss_ipv6_log.o \ |
Selin Dag | 60a2f5b | 2015-06-29 14:39:49 -0700 | [diff] [blame] | 26 | nss_ipv6_reasm.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 27 | nss_lag.o \ |
Thomas Wu | c3e382c | 2014-10-29 15:35:13 -0700 | [diff] [blame] | 28 | nss_lso_rx.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 29 | nss_phys_if.o \ |
| 30 | nss_pm.o \ |
Ankit Dhanuka | 2ae20a8 | 2014-08-25 18:04:00 +0530 | [diff] [blame] | 31 | nss_sjack.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 32 | nss_stats.o \ |
| 33 | nss_tun6rd.o \ |
Shyam Sunder | 66e889d | 2015-11-02 15:31:20 +0530 | [diff] [blame] | 34 | nss_pptp.o \ |
ratheesh kannoth | 7af985d | 2015-06-24 15:08:40 +0530 | [diff] [blame] | 35 | nss_l2tpv2.o \ |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 36 | nss_map_t.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 37 | nss_tunipip6.o \ |
Sakthi Vignesh Radhakrishnan | ef91849 | 2014-04-07 14:24:19 -0700 | [diff] [blame] | 38 | nss_virt_if.o \ |
Ankit Dhanuka | a1569ce | 2014-05-13 19:58:06 +0530 | [diff] [blame] | 39 | nss_shaper.o \ |
Saurabh Misra | 09dddeb | 2014-09-30 16:38:07 -0700 | [diff] [blame] | 40 | nss_pppoe.o \ |
Stephen Wang | 9779d95 | 2015-10-28 11:39:07 -0700 | [diff] [blame] | 41 | nss_portid.o \ |
Sundarajan Srinivasan | f1e5746 | 2014-09-17 15:24:01 -0700 | [diff] [blame] | 42 | nss_capwap.o \ |
| 43 | nss_eth_rx.o \ |
Stephen Wang | 38e89bc | 2014-11-06 11:34:45 -0800 | [diff] [blame] | 44 | nss_n2h.o \ |
Sivanesan Rajapupathi | 5c31b21 | 2016-01-06 16:21:57 -0500 | [diff] [blame] | 45 | nss_oam.o \ |
Sundarajan Srinivasan | dedd8e4 | 2014-10-06 11:59:34 -0700 | [diff] [blame] | 46 | nss_data_plane.o \ |
Bharath M Kumar | cc666e9 | 2014-12-24 19:17:28 +0530 | [diff] [blame] | 47 | nss_log.o \ |
| 48 | nss_wifi.o \ |
Sundarajan Srinivasan | 273d900 | 2015-03-03 15:43:16 -0800 | [diff] [blame] | 49 | nss_wifi_vdev.o \ |
| 50 | nss_wifi_if.o |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 51 | |
| 52 | # |
| 53 | # TODO: Deprecated files should be removed before merge |
| 54 | # |
| 55 | qca-nss-drv-objs += \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 56 | nss_tx_rx_virt_if.o |
| 57 | |
Bharath M Kumar | cc666e9 | 2014-12-24 19:17:28 +0530 | [diff] [blame] | 58 | ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_PKT_STATS_ENABLED=1 |
Murat Sezgin | c5cbfed | 2015-01-16 17:32:43 -0800 | [diff] [blame] | 59 | ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_PPP_SUPPORT=1 |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 60 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 61 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Ankit Dhanuka | 4ac3c9f | 2015-08-10 16:03:00 +0530 | [diff] [blame] | 62 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=0 -DNSS_FW_DBG_SUPPORT=1 -DNSS_PM_SUPPORT=1 -DNSS_EMPTY_BUFFER_SIZE=1984 |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 63 | else |
Radha krishna Simha Jiguru | 6922458 | 2015-11-04 15:28:58 +0530 | [diff] [blame] | 64 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 -DNSS_EMPTY_BUFFER_SIZE=1984 |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 65 | ccflags-y += -I$(obj) |
| 66 | endif |
| 67 | |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 68 | # Only the 3.14 Kernel implements fabric scaling framework and map-t |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 69 | ifneq ($(findstring 3.14, $(KERNELVERSION)),) |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 70 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 -DNSS_MAP_T_SUPPORT=1 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 71 | else |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 72 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 -DNSS_MAP_T_SUPPORT=0 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 73 | endif |
| 74 | |
Arunkumar T | 28b2d74 | 2015-06-16 22:15:58 +0530 | [diff] [blame] | 75 | # Disable Frequency scaling |
| 76 | ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y" |
| 77 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0 |
| 78 | else |
| 79 | qca-nss-drv-objs += nss_freq.o |
| 80 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1 |
| 81 | endif |
| 82 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 83 | ccflags-y += $(NSS_CCFLAGS) |
| 84 | |
| 85 | export NSS_CCFLAGS |
| 86 | |
Guojun Jin | 4b3707b | 2014-05-16 15:55:23 -0700 | [diff] [blame] | 87 | qca-nss-drv-objs += nss_profiler.o |
Saurabh Misra | 70057f0 | 2014-10-16 12:22:53 -0700 | [diff] [blame] | 88 | |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 89 | obj ?= . |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 90 | |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 91 | qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o |
Abhishek Rastogi | 38cffff | 2013-06-02 11:25:47 +0530 | [diff] [blame] | 92 | ccflags-y += -I$(obj)/nss_hal/ipq806x |