blob: 3a1730d499ec7041bf610202a860adf0e866869a [file] [log] [blame]
Radhakrishna Jiguru1c9b2252013-08-27 23:57:48 +05301##########################################################################
Sundarajan Srinivasan6e0366b2015-01-20 12:10:42 -08002# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
Radhakrishna Jiguru1c9b2252013-08-27 23:57:48 +05303# 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, Vijayc6ae5662013-06-10 11:03:55 +053014
15# ###################################################
16# # Makefile for the NSS driver
17# ###################################################
18
Abhishek Rastogibc74e432013-04-02 10:28:22 +053019obj-m += qca-nss-drv.o
Sol Kavy2783c072014-04-05 12:53:13 -070020
Sol Kavy879eb8b2014-04-07 19:11:31 -070021#
22# List the files that belong to the driver in alphabetical order.
23#
Sol Kavy2783c072014-04-05 12:53:13 -070024qca-nss-drv-objs := \
Sol Kavy2783c072014-04-05 12:53:13 -070025 nss_cmn.o \
26 nss_core.o \
Samarjeet Banerjeede86b802014-04-10 02:59:49 +053027 nss_crypto.o \
Ankit Dhanuka9b430252014-08-12 13:53:41 +053028 nss_dynamic_interface.o \
Ankit Dhanuka607508d2014-08-21 20:20:34 +053029 nss_gre_redir.o \
Sol Kavya55c9a52014-04-08 14:33:16 -070030 nss_if.o \
Samarjeet Banerjeed99d9d02014-04-08 18:51:00 +053031 nss_init.o \
32 nss_ipsec.o \
Sol Kavy2783c072014-04-05 12:53:13 -070033 nss_ipv4.o \
Selin Dag6d9b0c12014-11-04 18:27:21 -080034 nss_ipv4_reasm.o \
Sol Kavy879eb8b2014-04-07 19:11:31 -070035 nss_ipv6.o \
Sol Kavy2783c072014-04-05 12:53:13 -070036 nss_lag.o \
Thomas Wuc3e382c2014-10-29 15:35:13 -070037 nss_lso_rx.o \
Sol Kavy2783c072014-04-05 12:53:13 -070038 nss_phys_if.o \
39 nss_pm.o \
Ankit Dhanuka2ae20a82014-08-25 18:04:00 +053040 nss_sjack.o \
Sol Kavy2783c072014-04-05 12:53:13 -070041 nss_stats.o \
42 nss_tun6rd.o \
43 nss_tunipip6.o \
Sakthi Vignesh Radhakrishnanef918492014-04-07 14:24:19 -070044 nss_virt_if.o \
Ankit Dhanukaa1569ce2014-05-13 19:58:06 +053045 nss_shaper.o \
Saurabh Misra09dddeb2014-09-30 16:38:07 -070046 nss_pppoe.o \
Sundarajan Srinivasanf1e57462014-09-17 15:24:01 -070047 nss_capwap.o \
48 nss_eth_rx.o \
Stephen Wang38e89bc2014-11-06 11:34:45 -080049 nss_n2h.o \
Sundarajan Srinivasandedd8e42014-10-06 11:59:34 -070050 nss_data_plane.o \
Saurabh Misra96998db2014-07-10 12:15:48 -070051 nss_log.o
Sol Kavy2783c072014-04-05 12:53:13 -070052
53#
54# TODO: Deprecated files should be removed before merge
55#
56qca-nss-drv-objs += \
Sol Kavy2783c072014-04-05 12:53:13 -070057 nss_tx_rx_virt_if.o
58
Sundarajan Srinivasan62fee7e2015-01-22 11:13:10 -080059ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_EMPTY_BUFFER_SIZE=1792 -DNSS_PKT_STATS_ENABLED=1
Murat Sezginc5cbfed2015-01-16 17:32:43 -080060ccflags-y += -DNSS_PM_DEBUG_LEVEL=0 -DNSS_PPP_SUPPORT=1
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053061
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080062ifneq ($(findstring 3.4, $(KERNELVERSION)),)
Murat Sezginc5cbfed2015-01-16 17:32:43 -080063NSS_CCFLAGS = -DNSS_DT_SUPPORT=0 -DNSS_FW_DBG_SUPPORT=1 -DNSS_PM_SUPPORT=1
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080064else
Murat Sezginc5cbfed2015-01-16 17:32:43 -080065NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080066ccflags-y += -I$(obj)
67endif
68
Arunkumar T28b2d742015-06-16 22:15:58 +053069# Disable Frequency scaling
70ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y"
71ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0
72else
73qca-nss-drv-objs += nss_freq.o
74ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=1
75endif
76
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080077ccflags-y += $(NSS_CCFLAGS)
78
79export NSS_CCFLAGS
80
Guojun Jin4b3707b2014-05-16 15:55:23 -070081qca-nss-drv-objs += nss_profiler.o
Saurabh Misra70057f02014-10-16 12:22:53 -070082
Sundarajan Srinivasan4691ba62014-11-07 11:24:07 -080083
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053084obj ?= .
Abhishek Rastogibc74e432013-04-02 10:28:22 +053085
Abhishek Rastogibc74e432013-04-02 10:28:22 +053086qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o
Abhishek Rastogi38cffff2013-06-02 11:25:47 +053087ccflags-y += -I$(obj)/nss_hal/ipq806x