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 \ |
Sachin Shashidhar | 07b0061 | 2018-05-18 15:10:50 -0700 | [diff] [blame] | 12 | nss_bridge_log.o \ |
Cemil Coskun | 1c9c392 | 2018-01-23 16:21:49 -0800 | [diff] [blame] | 13 | nss_c2c_tx.o \ |
Sachin Shashidhar | abe73e7 | 2018-05-18 17:55:04 -0700 | [diff] [blame] | 14 | nss_c2c_tx_log.o \ |
Cemil Coskun | 1c9c392 | 2018-01-23 16:21:49 -0800 | [diff] [blame] | 15 | nss_c2c_tx_stats.o \ |
Cemil Coskun | af7c5eb | 2018-01-24 12:07:08 -0800 | [diff] [blame] | 16 | nss_c2c_rx.o \ |
| 17 | nss_c2c_rx_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 18 | nss_capwap.o \ |
Sachin Shashidhar | e6babc5 | 2018-05-29 15:20:40 -0700 | [diff] [blame] | 19 | nss_capwap_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 20 | nss_capwap_stats.o \ |
Suman Ghosh | 85f353a | 2019-06-03 14:47:32 +0530 | [diff] [blame] | 21 | nss_clmap.o \ |
| 22 | nss_clmap_log.o \ |
| 23 | nss_clmap_stats.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 24 | nss_cmn.o \ |
| 25 | nss_core.o \ |
Guojun Jin | 1cb7952 | 2015-06-22 22:34:22 -0700 | [diff] [blame] | 26 | nss_coredump.o \ |
Sakthi Vignesh Radhakrishnan | 150c559 | 2019-07-02 10:17:44 -0700 | [diff] [blame^] | 27 | nss_drv_stats.o \ |
Ankit Dhanuka | 9b43025 | 2014-08-12 13:53:41 +0530 | [diff] [blame] | 28 | nss_dynamic_interface.o \ |
Sachin Shashidhar | 0aa9615 | 2018-06-05 16:57:49 -0700 | [diff] [blame] | 29 | nss_dynamic_interface_log.o \ |
Shashank Balashankar | 512cb60 | 2016-08-01 17:57:42 -0700 | [diff] [blame] | 30 | nss_edma.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 31 | nss_edma_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 32 | nss_eth_rx.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 33 | nss_eth_rx_stats.o \ |
Sakthi Vignesh Radhakrishnan | 150c559 | 2019-07-02 10:17:44 -0700 | [diff] [blame^] | 34 | nss_gmac_stats.o \ |
ratheesh kannoth | eb2a0a8 | 2017-05-04 09:20:17 +0530 | [diff] [blame] | 35 | nss_gre.o \ |
Sachin Shashidhar | 159a64a | 2018-07-31 16:16:51 -0700 | [diff] [blame] | 36 | nss_gre_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 37 | nss_gre_stats.o \ |
Ankit Dhanuka | 607508d | 2014-08-21 20:20:34 +0530 | [diff] [blame] | 38 | nss_gre_redir.o \ |
Sachin Shashidhar | 3d890cf | 2018-07-31 20:13:52 -0700 | [diff] [blame] | 39 | nss_gre_redir_log.o \ |
Gaurav Pathak | 0c504c9 | 2017-12-08 15:20:38 +0530 | [diff] [blame] | 40 | nss_gre_redir_lag_ds.o \ |
Sachin Shashidhar | 8565889 | 2018-08-03 12:39:11 -0700 | [diff] [blame] | 41 | nss_gre_redir_lag_ds_log.o \ |
Gaurav Pathak | 0c504c9 | 2017-12-08 15:20:38 +0530 | [diff] [blame] | 42 | nss_gre_redir_lag_ds_stats.o \ |
| 43 | nss_gre_redir_lag_us.o \ |
Sachin Shashidhar | c35ebd0 | 2018-08-03 13:16:19 -0700 | [diff] [blame] | 44 | nss_gre_redir_lag_us_log.o \ |
Gaurav Pathak | 0c504c9 | 2017-12-08 15:20:38 +0530 | [diff] [blame] | 45 | nss_gre_redir_lag_us_stats.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 46 | nss_gre_redir_stats.o \ |
Aniruddha Paul | b28a827 | 2019-07-04 19:32:00 +0530 | [diff] [blame] | 47 | nss_gre_redir_mark.o \ |
| 48 | nss_gre_redir_mark_log.o \ |
| 49 | nss_gre_redir_mark_stats.o \ |
Thomas Wu | 71c5ecc | 2016-06-21 11:15:52 -0700 | [diff] [blame] | 50 | nss_gre_tunnel.o \ |
Sachin Shashidhar | 37dbc0f | 2018-08-06 12:31:18 -0700 | [diff] [blame] | 51 | nss_gre_tunnel_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 52 | nss_gre_tunnel_stats.o \ |
Sol Kavy | a55c9a5 | 2014-04-08 14:33:16 -0700 | [diff] [blame] | 53 | nss_if.o \ |
Manish Verma | 8a56a48 | 2019-05-20 12:46:31 +0530 | [diff] [blame] | 54 | nss_igs.o \ |
Manish Verma | 30fbe18 | 2019-06-17 21:02:24 +0530 | [diff] [blame] | 55 | nss_igs_stats.o \ |
Samarjeet Banerjee | d99d9d0 | 2014-04-08 18:51:00 +0530 | [diff] [blame] | 56 | nss_init.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 57 | nss_ipv4.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 58 | nss_ipv4_stats.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame] | 59 | nss_ipv4_log.o \ |
Selin Dag | 6d9b0c1 | 2014-11-04 18:27:21 -0800 | [diff] [blame] | 60 | nss_ipv4_reasm.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 61 | nss_ipv4_reasm_stats.o \ |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 62 | nss_ipv6.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 63 | nss_ipv6_stats.o \ |
Suruchi Agarwal | e3940e7 | 2016-07-06 15:56:51 -0700 | [diff] [blame] | 64 | nss_ipv6_log.o \ |
Selin Dag | 60a2f5b | 2015-06-29 14:39:49 -0700 | [diff] [blame] | 65 | nss_ipv6_reasm.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 66 | nss_ipv6_reasm_stats.o \ |
ratheesh kannoth | 7af985d | 2015-06-24 15:08:40 +0530 | [diff] [blame] | 67 | nss_l2tpv2.o \ |
Sachin Shashidhar | 015c28a | 2018-08-06 19:11:00 -0700 | [diff] [blame] | 68 | nss_l2tpv2_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 69 | nss_l2tpv2_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 70 | nss_lag.o \ |
Sachin Shashidhar | 384d2aa | 2018-08-06 19:27:55 -0700 | [diff] [blame] | 71 | nss_lag_log.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 72 | nss_log.o \ |
| 73 | nss_lso_rx.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 74 | nss_lso_rx_stats.o \ |
ratheesh kannoth | a1245c3 | 2015-11-04 16:45:43 +0530 | [diff] [blame] | 75 | nss_map_t.o \ |
Sachin Shashidhar | ba18a4f | 2018-08-07 10:45:19 -0700 | [diff] [blame] | 76 | nss_map_t_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 77 | nss_map_t_stats.o \ |
Casey Chen | cfa2835 | 2018-04-21 01:03:02 -0700 | [diff] [blame] | 78 | nss_meminfo.o \ |
Stephen Wang | 38e89bc | 2014-11-06 11:34:45 -0800 | [diff] [blame] | 79 | nss_n2h.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 80 | nss_n2h_stats.o \ |
Sivanesan Rajapupathi | 5c31b21 | 2016-01-06 16:21:57 -0500 | [diff] [blame] | 81 | nss_oam.o \ |
Sachin Shashidhar | a802cc3 | 2018-08-07 11:06:17 -0700 | [diff] [blame] | 82 | nss_oam_log.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 83 | nss_phys_if.o \ |
Tanmay V Jagdale | 20490fb | 2017-02-09 17:32:31 +0530 | [diff] [blame] | 84 | nss_pm.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 85 | nss_profiler.o \ |
Jackson Bockus | c2a4e68 | 2017-06-23 11:59:29 -0700 | [diff] [blame] | 86 | nss_project.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 87 | nss_portid.o \ |
Sachin Shashidhar | 3a44136 | 2018-08-07 16:48:53 -0700 | [diff] [blame] | 88 | nss_portid_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 89 | nss_portid_stats.o \ |
Amit Gupta | 316729b | 2016-08-12 12:21:15 +0530 | [diff] [blame] | 90 | nss_ppe.o \ |
Sachin Shashidhar | dd7229c | 2018-08-07 17:33:42 -0700 | [diff] [blame] | 91 | nss_ppe_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 92 | nss_ppe_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 93 | nss_pppoe.o \ |
Sachin Shashidhar | 626131e | 2018-08-08 11:29:58 -0700 | [diff] [blame] | 94 | nss_pppoe_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 95 | nss_pppoe_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 96 | nss_pptp.o \ |
Sachin Shashidhar | 94beadf | 2018-08-08 11:43:54 -0700 | [diff] [blame] | 97 | nss_pptp_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 98 | nss_pptp_stats.o \ |
Cemil Coskun | cdcd1dd | 2019-01-28 13:35:31 -0800 | [diff] [blame] | 99 | nss_pvxlan.o \ |
| 100 | nss_pvxlan_log.o \ |
| 101 | nss_pvxlan_stats.o \ |
Cemil Coskun | 9165c76 | 2017-12-04 14:35:24 -0800 | [diff] [blame] | 102 | nss_rps.o \ |
Yu Huang | 6b2f0be | 2017-10-18 16:11:49 -0700 | [diff] [blame] | 103 | nss_qrfs.o \ |
Sachin Shashidhar | 0fc1a14 | 2018-08-08 14:15:27 -0700 | [diff] [blame] | 104 | nss_qrfs_log.o \ |
Yu Huang | e189d8a | 2018-01-04 17:45:57 -0800 | [diff] [blame] | 105 | nss_qrfs_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 106 | nss_shaper.o \ |
| 107 | nss_sjack.o \ |
Sachin Shashidhar | 1f8ccf8 | 2018-08-08 14:32:13 -0700 | [diff] [blame] | 108 | nss_sjack_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 109 | nss_sjack_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 110 | nss_stats.o \ |
| 111 | nss_tstamp.o \ |
Cemil Coskun | 58d2773 | 2019-05-22 13:39:14 -0700 | [diff] [blame] | 112 | nss_tstamp_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 113 | nss_tun6rd.o \ |
Sachin Shashidhar | 4743045 | 2018-08-13 16:36:18 -0700 | [diff] [blame] | 114 | nss_tun6rd_log.o \ |
Stephen Wang | ec5a85c | 2016-09-08 23:32:27 -0700 | [diff] [blame] | 115 | nss_trustsec_tx.o \ |
Sachin Shashidhar | 9128748 | 2018-08-13 15:32:39 -0700 | [diff] [blame] | 116 | nss_trustsec_tx_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 117 | nss_trustsec_tx_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 118 | nss_tunipip6.o \ |
Sachin Shashidhar | 4529cea | 2018-08-13 16:58:32 -0700 | [diff] [blame] | 119 | nss_tunipip6_log.o \ |
Casey Chen | 3589c45 | 2018-09-20 15:27:41 -0700 | [diff] [blame] | 120 | nss_tx_msg_sync.o \ |
Jackson Bockus | b40398c | 2017-10-03 11:01:37 -0700 | [diff] [blame] | 121 | nss_unaligned.o \ |
| 122 | nss_unaligned_log.o \ |
| 123 | nss_unaligned_stats.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 124 | nss_virt_if.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 125 | nss_virt_if_stats.o \ |
Stephen Wang | bce0667 | 2016-12-02 15:11:35 -0800 | [diff] [blame] | 126 | nss_vlan.o \ |
Sachin Shashidhar | adca0c8 | 2018-08-19 18:42:22 -0700 | [diff] [blame] | 127 | nss_vlan_log.o \ |
Apoorv Gupta | 9e184d4 | 2019-07-09 12:46:42 +0530 | [diff] [blame] | 128 | nss_vxlan.o \ |
| 129 | nss_vxlan_log.o \ |
| 130 | nss_vxlan_stats.o \ |
mandrew | c00308f | 2016-11-15 23:25:08 +0530 | [diff] [blame] | 131 | nss_tstamp.o \ |
Bharath M Kumar | cc666e9 | 2014-12-24 19:17:28 +0530 | [diff] [blame] | 132 | nss_wifi.o \ |
Sachin Shashidhar | 9449ad1 | 2018-08-19 22:08:01 -0700 | [diff] [blame] | 133 | nss_wifi_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 134 | nss_wifi_stats.o \ |
Varsha Mishra | e58d93b | 2017-05-20 20:54:41 +0530 | [diff] [blame] | 135 | nss_wifi_vdev.o \ |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 136 | nss_wifi_if.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 137 | nss_wifi_if_stats.o \ |
| 138 | nss_wifili.o \ |
Sachin Shashidhar | c7b2e00 | 2018-08-20 13:52:51 -0700 | [diff] [blame] | 139 | nss_wifili_log.o \ |
Yu Huang | 8c10708 | 2017-07-24 14:58:26 -0700 | [diff] [blame] | 140 | nss_wifili_stats.o |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 141 | |
Stephen Wang | 5901def | 2016-05-09 16:21:03 -0700 | [diff] [blame] | 142 | # Base NSS data plane/HAL support |
| 143 | qca-nss-drv-objs += nss_data_plane/nss_data_plane.o |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 144 | qca-nss-drv-objs += nss_hal/nss_hal.o |
| 145 | |
Ram Chandra Jangir | 461e3db | 2017-04-05 12:34:29 +0530 | [diff] [blame] | 146 | ifeq ($(SoC),$(filter $(SoC),ipq806x ipq40xx)) |
ratheesh kannoth | 9246781 | 2018-06-25 17:47:36 +0530 | [diff] [blame] | 147 | qca-nss-drv-objs += nss_data_plane/nss_data_plane_gmac.o \ |
| 148 | nss_hal/ipq806x/nss_hal_pvt.o \ |
| 149 | nss_dtls.o \ |
| 150 | nss_dtls_log.o \ |
| 151 | nss_dtls_stats.o \ |
| 152 | nss_crypto.o \ |
| 153 | nss_crypto_log.o \ |
| 154 | nss_ipsec_log.o \ |
| 155 | nss_ipsec.o |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 156 | ccflags-y += -I$(obj)/nss_hal/ipq806x -DNSS_HAL_IPQ806X_SUPPORT |
Stephen Wang | d800d73 | 2017-01-19 16:24:36 -0800 | [diff] [blame] | 157 | endif |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 158 | |
Ram Chandra Jangir | 461e3db | 2017-04-05 12:34:29 +0530 | [diff] [blame] | 159 | ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64)) |
ratheesh kannoth | 9246781 | 2018-06-25 17:47:36 +0530 | [diff] [blame] | 160 | qca-nss-drv-objs += nss_data_plane/nss_data_plane_edma.o \ |
| 161 | nss_hal/ipq807x/nss_hal_pvt.o \ |
| 162 | nss_dtls_cmn.o \ |
| 163 | nss_dtls_cmn_log.o \ |
| 164 | nss_crypto_cmn.o \ |
| 165 | nss_crypto_cmn_log.o \ |
| 166 | nss_ipsec_cmn_log.o \ |
Bhaskar Valaboju | 3aea9fe | 2018-10-08 11:37:08 +0530 | [diff] [blame] | 167 | nss_ipsec_cmn.o \ |
| 168 | nss_qvpn.o \ |
| 169 | nss_qvpn_stats.o \ |
| 170 | nss_qvpn_log.o |
Stephen Wang | 0263686 | 2018-04-05 22:13:12 -0700 | [diff] [blame] | 171 | ccflags-y += -I$(obj)/nss_hal/ipq807x -DNSS_HAL_IPQ807x_SUPPORT -DNSS_MULTI_H2N_DATA_RING_SUPPORT |
Stephen Wang | be34802 | 2016-05-02 17:11:34 -0700 | [diff] [blame] | 172 | endif |
| 173 | |
Suman Ghosh | 3f94023 | 2018-08-17 20:43:03 +0530 | [diff] [blame] | 174 | ifeq ($(SoC),$(filter $(SoC),ipq60xx ipq60xx_64)) |
| 175 | qca-nss-drv-objs += nss_data_plane/nss_data_plane_edma.o \ |
| 176 | nss_hal/ipq60xx/nss_hal_pvt.o \ |
| 177 | nss_dtls_cmn.o \ |
| 178 | nss_dtls_cmn_log.o \ |
| 179 | nss_crypto_cmn.o \ |
ratheesh kannoth | 9246781 | 2018-06-25 17:47:36 +0530 | [diff] [blame] | 180 | nss_crypto_cmn_log.o \ |
| 181 | nss_ipsec_cmn_log.o \ |
Sourav Poddar | 4243cdd | 2019-06-14 17:57:23 +0530 | [diff] [blame] | 182 | nss_ipsec_cmn.o \ |
| 183 | nss_qvpn.o \ |
| 184 | nss_qvpn_stats.o \ |
| 185 | nss_qvpn_log.o |
Suman Ghosh | 3f94023 | 2018-08-17 20:43:03 +0530 | [diff] [blame] | 186 | ccflags-y += -I$(obj)/nss_hal/ipq60xx -DNSS_HAL_IPQ60XX_SUPPORT -DNSS_MULTI_H2N_DATA_RING_SUPPORT |
| 187 | endif |
| 188 | |
Stephen Wang | 5901def | 2016-05-09 16:21:03 -0700 | [diff] [blame] | 189 | 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 |
| 190 | |
Thomas Wu | 6d90b41 | 2018-07-10 11:38:35 -0700 | [diff] [blame] | 191 | ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_SKB_REUSE_SUPPORT=1 |
Arunkumar T | ba9b4a0 | 2016-11-07 11:41:14 +0530 | [diff] [blame] | 192 | ccflags-y += -Werror |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 193 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 194 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
pavir | f22fa14 | 2019-01-08 17:33:05 +0530 | [diff] [blame] | 195 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=0 -DNSS_FW_DBG_SUPPORT=1 -DNSS_PM_SUPPORT=1 |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 196 | else |
pavir | f22fa14 | 2019-01-08 17:33:05 +0530 | [diff] [blame] | 197 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 198 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 199 | ccflags-y += -I$(obj) |
| 200 | endif |
| 201 | |
Thomas Wu | 862394c | 2017-05-03 15:54:11 -0700 | [diff] [blame] | 202 | # Fabric scaling is supported in 3.14 and 4.4 only |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 203 | ifneq ($(findstring 3.14, $(KERNELVERSION)),) |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 204 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 |
Murat Sezgin | c3f318f | 2017-05-25 13:02:13 -0700 | [diff] [blame] | 205 | else ifneq ($(findstring 4.4, $(KERNELVERSION)),) |
Thomas Wu | 862394c | 2017-05-03 15:54:11 -0700 | [diff] [blame] | 206 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 207 | else |
Stephen Wang | 90c67de | 2016-04-26 15:15:59 -0700 | [diff] [blame] | 208 | NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 |
Stephen Wang | 463f1cf | 2016-03-29 15:25:51 -0700 | [diff] [blame] | 209 | endif |
| 210 | |
Arunkumar T | 28b2d74 | 2015-06-16 22:15:58 +0530 | [diff] [blame] | 211 | # Disable Frequency scaling |
| 212 | ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y" |
| 213 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0 |
| 214 | else |
Sachin Shashidhar | 6dd9cfc | 2018-07-31 14:44:37 -0700 | [diff] [blame] | 215 | qca-nss-drv-objs += \ |
| 216 | nss_freq.o \ |
Gaurao Chaudhari | 7c5d01e | 2019-09-16 10:34:48 -0700 | [diff] [blame] | 217 | nss_freq_log.o \ |
| 218 | nss_freq_stats.o |
Arunkumar T | 28b2d74 | 2015-06-16 22:15:58 +0530 | [diff] [blame] | 219 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1 |
| 220 | endif |
| 221 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 222 | ccflags-y += $(NSS_CCFLAGS) |
| 223 | |
| 224 | export NSS_CCFLAGS |
| 225 | |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 226 | obj ?= . |