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 := \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 11 | nss_capwap.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 12 | nss_cmn.o \ |
| 13 | nss_core.o \ |
Guojun Jin | 1cb7952 | 2015-06-22 22:34:22 -0700 | [diff] [blame] | 14 | nss_coredump.o \ |
Samarjeet Banerjee | de86b80 | 2014-04-10 02:59:49 +0530 | [diff] [blame] | 15 | nss_crypto.o \ |
Tushar Mathur | ff8741b | 2015-12-02 20:28:59 +0530 | [diff] [blame] | 16 | nss_dtls.o \ |
Ankit Dhanuka | 9b43025 | 2014-08-12 13:53:41 +0530 | [diff] [blame] | 17 | nss_dynamic_interface.o \ |
Shashank Balashankar | 512cb60 | 2016-08-01 17:57:42 -0700 | [diff] [blame^] | 18 | nss_edma.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 19 | nss_eth_rx.o \ |
Ankit Dhanuka | 607508d | 2014-08-21 20:20:34 +0530 | [diff] [blame] | 20 | nss_gre_redir.o \ |
Sol Kavy | a55c9a5 | 2014-04-08 14:33:16 -0700 | [diff] [blame] | 21 | nss_if.o \ |
Samarjeet Banerjee | d99d9d0 | 2014-04-08 18:51:00 +0530 | [diff] [blame] | 22 | nss_init.o \ |
| 23 | nss_ipsec.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 24 | nss_ipv4.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame] | 25 | nss_ipv4_log.o \ |
Selin Dag | 6d9b0c1 | 2014-11-04 18:27:21 -0800 | [diff] [blame] | 26 | nss_ipv4_reasm.o \ |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 27 | nss_ipv6.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame] | 28 | nss_ipv6_log.o \ |
Selin Dag | 60a2f5b | 2015-06-29 14:39:49 -0700 | [diff] [blame] | 29 | nss_ipv6_reasm.o \ |
ratheesh kannoth | 7af985d | 2015-06-24 15:08:40 +0530 | [diff] [blame] | 30 | nss_l2tpv2.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 31 | nss_lag.o \ |
| 32 | nss_log.o \ |
| 33 | nss_lso_rx.o \ |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 34 | nss_map_t.o \ |
Stephen Wang | 38e89bc | 2014-11-06 11:34:45 -0800 | [diff] [blame] | 35 | nss_n2h.o \ |
Sivanesan Rajapupathi | 5c31b21 | 2016-01-06 16:21:57 -0500 | [diff] [blame] | 36 | nss_oam.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 37 | nss_phys_if.o \ |
| 38 | nss_profiler.o \ |
| 39 | nss_portid.o \ |
| 40 | nss_pppoe.o \ |
| 41 | nss_pptp.o \ |
| 42 | nss_shaper.o \ |
| 43 | nss_sjack.o \ |
| 44 | nss_stats.o \ |
| 45 | nss_tstamp.o \ |
| 46 | nss_tun6rd.o \ |
| 47 | nss_tunipip6.o \ |
| 48 | nss_virt_if.o \ |
Bharath M Kumar | cc666e9 | 2014-12-24 19:17:28 +0530 | [diff] [blame] | 49 | nss_wifi.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 50 | nss_wifi_if.o \ |
| 51 | nss_wifi_vdev.o |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 52 | |
| 53 | # |
| 54 | # TODO: Deprecated files should be removed before merge |
| 55 | # |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 56 | qca-nss-drv-objs += nss_tx_rx_virt_if.o |
| 57 | |
Stephen Wang | 5901def | 2016-05-09 16:21:03 -0700 | [diff] [blame] | 58 | # Base NSS data plane/HAL support |
| 59 | qca-nss-drv-objs += nss_data_plane/nss_data_plane.o |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 60 | qca-nss-drv-objs += nss_hal/nss_hal.o |
| 61 | |
Stephen Wang | be34802 | 2016-05-02 17:11:34 -0700 | [diff] [blame] | 62 | # All active qsdk branches (banana/coconut/trunk) supports ipq806x |
Stephen Wang | 5901def | 2016-05-09 16:21:03 -0700 | [diff] [blame] | 63 | qca-nss-drv-objs += nss_data_plane/nss_data_plane_gmac.o \ |
| 64 | nss_hal/ipq806x/nss_hal_pvt.o |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 65 | ccflags-y += -I$(obj)/nss_hal/ipq806x -DNSS_HAL_IPQ806X_SUPPORT |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 66 | |
Stephen Wang | be34802 | 2016-05-02 17:11:34 -0700 | [diff] [blame] | 67 | # Only 4.4 Kernel (qsdk trunk) supports ipq807x |
| 68 | ifneq ($(findstring 4.4., $(KERNELVERSION)),) |
Stephen Wang | df8323b | 2016-05-09 22:51:22 -0700 | [diff] [blame] | 69 | qca-nss-drv-objs += nss_data_plane/nss_data_plane_edma.o \ |
| 70 | nss_hal/ipq807x/nss_hal_pvt.o |
Stephen Wang | be34802 | 2016-05-02 17:11:34 -0700 | [diff] [blame] | 71 | ccflags-y += -I$(obj)/nss_hal/ipq807x -DNSS_HAL_IPQ807x_SUPPORT |
| 72 | endif |
| 73 | |
Stephen Wang | 5901def | 2016-05-09 16:21:03 -0700 | [diff] [blame] | 74 | ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/nss_data_plane/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_PKT_STATS_ENABLED=1 |
| 75 | |
Anish Nataraj | 05d31f6 | 2016-08-17 17:07:14 +0530 | [diff] [blame] | 76 | ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_SKB_RECYCLE_SUPPORT=1 |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 77 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 78 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Ankit Dhanuka | 4ac3c9f | 2015-08-10 16:03:00 +0530 | [diff] [blame] | 79 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=0 -DNSS_FW_DBG_SUPPORT=1 -DNSS_PM_SUPPORT=1 -DNSS_EMPTY_BUFFER_SIZE=1984 |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 80 | qca-nss-drv-objs += nss_pm.o |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 81 | else |
Radha krishna Simha Jiguru | 6922458 | 2015-11-04 15:28:58 +0530 | [diff] [blame] | 82 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 -DNSS_EMPTY_BUFFER_SIZE=1984 |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 83 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 84 | ccflags-y += -I$(obj) |
| 85 | endif |
| 86 | |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 87 | # Only the 3.14 Kernel implements fabric scaling framework and map-t |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 88 | ifneq ($(findstring 3.14, $(KERNELVERSION)),) |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 89 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 90 | else |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 91 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 92 | endif |
| 93 | |
Arunkumar T | 28b2d74 | 2015-06-16 22:15:58 +0530 | [diff] [blame] | 94 | # Disable Frequency scaling |
| 95 | ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y" |
| 96 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0 |
| 97 | else |
| 98 | qca-nss-drv-objs += nss_freq.o |
| 99 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1 |
| 100 | endif |
| 101 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 102 | ccflags-y += $(NSS_CCFLAGS) |
| 103 | |
| 104 | export NSS_CCFLAGS |
| 105 | |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 106 | obj ?= . |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 107 | |