Radhakrishna Jiguru | 1c9b225 | 2013-08-27 23:57:48 +0530 | [diff] [blame] | 1 | ########################################################################## |
Sundarajan Srinivasan | 6e0366b | 2015-01-20 12:10:42 -0800 | [diff] [blame] | 2 | # Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. |
Radhakrishna Jiguru | 1c9b225 | 2013-08-27 23:57:48 +0530 | [diff] [blame] | 3 | # Permission to use, copy, modify, and/or distribute this software for |
| 4 | # any purpose with or without fee is hereby granted, provided that the |
| 5 | # above copyright notice and this permission notice appear in all copies. |
| 6 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 7 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 8 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 9 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 10 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 11 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 12 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 13 | ########################################################################## |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 14 | |
| 15 | # ################################################### |
| 16 | # # Makefile for the NSS driver |
| 17 | # ################################################### |
| 18 | |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 19 | obj-m += qca-nss-drv.o |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 20 | |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 21 | # |
| 22 | # List the files that belong to the driver in alphabetical order. |
| 23 | # |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 24 | qca-nss-drv-objs := \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 25 | nss_cmn.o \ |
| 26 | nss_core.o \ |
Samarjeet Banerjee | de86b80 | 2014-04-10 02:59:49 +0530 | [diff] [blame] | 27 | nss_crypto.o \ |
Ankit Dhanuka | 9b43025 | 2014-08-12 13:53:41 +0530 | [diff] [blame] | 28 | nss_dynamic_interface.o \ |
Ankit Dhanuka | 607508d | 2014-08-21 20:20:34 +0530 | [diff] [blame] | 29 | nss_gre_redir.o \ |
Sol Kavy | a55c9a5 | 2014-04-08 14:33:16 -0700 | [diff] [blame] | 30 | nss_if.o \ |
Samarjeet Banerjee | d99d9d0 | 2014-04-08 18:51:00 +0530 | [diff] [blame] | 31 | nss_init.o \ |
| 32 | nss_ipsec.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 33 | nss_ipv4.o \ |
Selin Dag | 6d9b0c1 | 2014-11-04 18:27:21 -0800 | [diff] [blame] | 34 | nss_ipv4_reasm.o \ |
Sol Kavy | 879eb8b | 2014-04-07 19:11:31 -0700 | [diff] [blame] | 35 | nss_ipv6.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 36 | nss_lag.o \ |
Thomas Wu | c3e382c | 2014-10-29 15:35:13 -0700 | [diff] [blame] | 37 | nss_lso_rx.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 38 | nss_phys_if.o \ |
| 39 | nss_pm.o \ |
Ankit Dhanuka | 2ae20a8 | 2014-08-25 18:04:00 +0530 | [diff] [blame] | 40 | nss_sjack.o \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 41 | nss_stats.o \ |
| 42 | nss_tun6rd.o \ |
| 43 | nss_tunipip6.o \ |
Sakthi Vignesh Radhakrishnan | ef91849 | 2014-04-07 14:24:19 -0700 | [diff] [blame] | 44 | nss_virt_if.o \ |
Ankit Dhanuka | a1569ce | 2014-05-13 19:58:06 +0530 | [diff] [blame] | 45 | nss_shaper.o \ |
Saurabh Misra | 09dddeb | 2014-09-30 16:38:07 -0700 | [diff] [blame] | 46 | nss_pppoe.o \ |
Sundarajan Srinivasan | f1e5746 | 2014-09-17 15:24:01 -0700 | [diff] [blame] | 47 | nss_capwap.o \ |
| 48 | nss_eth_rx.o \ |
Stephen Wang | 38e89bc | 2014-11-06 11:34:45 -0800 | [diff] [blame] | 49 | nss_n2h.o \ |
Sundarajan Srinivasan | dedd8e4 | 2014-10-06 11:59:34 -0700 | [diff] [blame] | 50 | nss_data_plane.o \ |
Saurabh Misra | 96998db | 2014-07-10 12:15:48 -0700 | [diff] [blame] | 51 | nss_log.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 | # |
| 56 | qca-nss-drv-objs += \ |
Sol Kavy | 2783c07 | 2014-04-05 12:53:13 -0700 | [diff] [blame] | 57 | nss_tx_rx_virt_if.o |
| 58 | |
Sundarajan Srinivasan | 62fee7e | 2015-01-22 11:13:10 -0800 | [diff] [blame] | 59 | ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_EMPTY_BUFFER_SIZE=1792 -DNSS_PKT_STATS_ENABLED=1 |
Murat Sezgin | c5cbfed | 2015-01-16 17:32:43 -0800 | [diff] [blame] | 60 | ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_PPP_SUPPORT=1 |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 61 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 62 | ifneq ($(findstring 3.4, $(KERNELVERSION)),) |
Murat Sezgin | c5cbfed | 2015-01-16 17:32:43 -0800 | [diff] [blame] | 63 | 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] | 64 | else |
Murat Sezgin | c5cbfed | 2015-01-16 17:32:43 -0800 | [diff] [blame] | 65 | NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 66 | ccflags-y += -I$(obj) |
| 67 | endif |
| 68 | |
Arunkumar T | 28b2d74 | 2015-06-16 22:15:58 +0530 | [diff] [blame] | 69 | # Disable Frequency scaling |
| 70 | ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y" |
| 71 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0 |
| 72 | else |
| 73 | qca-nss-drv-objs += nss_freq.o |
| 74 | ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1 |
| 75 | endif |
| 76 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 77 | ccflags-y += $(NSS_CCFLAGS) |
| 78 | |
| 79 | export NSS_CCFLAGS |
| 80 | |
Guojun Jin | 4b3707b | 2014-05-16 15:55:23 -0700 | [diff] [blame] | 81 | qca-nss-drv-objs += nss_profiler.o |
Saurabh Misra | 70057f0 | 2014-10-16 12:22:53 -0700 | [diff] [blame] | 82 | |
Sundarajan Srinivasan | 4691ba6 | 2014-11-07 11:24:07 -0800 | [diff] [blame] | 83 | |
Pamidipati, Vijay | c6ae566 | 2013-06-10 11:03:55 +0530 | [diff] [blame] | 84 | obj ?= . |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 85 | |
Abhishek Rastogi | bc74e43 | 2013-04-02 10:28:22 +0530 | [diff] [blame] | 86 | qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o |
Abhishek Rastogi | 38cffff | 2013-06-02 11:25:47 +0530 | [diff] [blame] | 87 | ccflags-y += -I$(obj)/nss_hal/ipq806x |