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