blob: cb65df9948b8001f2f3d126a2db01b59aab81120 [file] [log] [blame]
Radhakrishna Jiguru1c9b2252013-08-27 23:57:48 +05301##########################################################################
Sol Kavy359ef152014-04-04 11:55:24 -07002# Copyright (c) 2013-2014, 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 \
Sol Kavy879eb8b2014-04-07 19:11:31 -070034 nss_ipv6.o \
Sol Kavy2783c072014-04-05 12:53:13 -070035 nss_lag.o \
36 nss_phys_if.o \
37 nss_pm.o \
38 nss_stats.o \
39 nss_tun6rd.o \
40 nss_tunipip6.o \
Sakthi Vignesh Radhakrishnanef918492014-04-07 14:24:19 -070041 nss_virt_if.o \
Ankit Dhanukaa1569ce2014-05-13 19:58:06 +053042 nss_shaper.o \
Pamidipati, Vijayb6e38842014-09-16 10:26:05 +053043 nss_pppoe.o
Sol Kavy2783c072014-04-05 12:53:13 -070044
45#
46# TODO: Deprecated files should be removed before merge
47#
48qca-nss-drv-objs += \
Sol Kavy2783c072014-04-05 12:53:13 -070049 nss_tx_rx_eth_rx.o \
50 nss_tx_rx_freq.o \
51 nss_tx_rx_generic.o \
52 nss_tx_rx_ipv4.o \
53 nss_tx_rx_ipv6.o \
Sol Kavy2783c072014-04-05 12:53:13 -070054 nss_tx_rx_n2h.o \
55 nss_tx_rx_pppoe.o \
56 nss_tx_rx_phys_if.o \
57 nss_tx_rx_virt_if.o
58
Thomas Wuc07d8702014-03-19 15:46:19 -070059obj-m += qca-nss-connmgr-ipv4.o
60obj-m += qca-nss-connmgr-ipv6.o
Bharath M Kumar614bbf82013-08-31 20:18:44 +053061obj-m += qca-nss-tunipip6.o
Samarjeet Banerjee77332312014-08-07 14:48:22 +053062obj-m += qca-nss-ipsecmgr.o
63
Bharath M Kumar0d87e912013-08-12 18:32:57 +053064ifeq "$(CONFIG_IPV6_SIT_6RD)" "y"
65obj-m += qca-nss-tun6rd.o
Radha krishna Simha Jiguru62a29e62014-04-04 17:28:53 +053066qca-nss-tun6rd-objs := nss_connmgr_tun6rd.o
Bharath M Kumar0d87e912013-08-12 18:32:57 +053067ccflags-y += -DNSS_TUN6RD_DEBUG_LEVEL=0
68endif
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053069
Tushar Mathur66506542014-04-03 22:01:40 +053070qca-nss-connmgr-ipv4-objs := nss_connmgr_ipv4.o nss_connmgr_lag.o
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053071qca-nss-connmgr-ipv6-objs := nss_connmgr_ipv6.o
Radha krishna Simha Jiguru62a29e62014-04-04 17:28:53 +053072qca-nss-tunipip6-objs := nss_connmgr_tunipip6.o
Samarjeet Banerjee77332312014-08-07 14:48:22 +053073qca-nss-ipsecmgr-objs := nss_ipsecmgr.o
Abhishek Rastogibc74e432013-04-02 10:28:22 +053074
Murat Sezgin84ca6512014-04-14 13:57:24 -070075ccflags-y += -I$(obj)/nss_hal/include -I$(obj)/exports -DNSS_DEBUG_LEVEL=0 -DNSS_EMPTY_BUFFER_SIZE=1792 -DNSS_PKT_STATS_ENABLED=0
Abhishek Rastogi9ddaaf02013-12-08 15:49:00 +053076ccflags-y += -DNSS_CONNMGR_DEBUG_LEVEL=0 -DNSS_CONNMGR_PPPOE_SUPPORT=0
Bharath M Kumar614bbf82013-08-31 20:18:44 +053077ccflags-y += -DNSS_TUNIPIP6_DEBUG_LEVEL=0
Pamidipati, Vijay7f413b52013-09-24 19:07:12 +053078ccflags-y += -DNSS_PM_DEBUG_LEVEL=0
Samarjeet Banerjee77332312014-08-07 14:48:22 +053079ccflags-y += -DNSS_IPSECMGR_DEBUG_LEVEL=3
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053080
Guojun Jin4b3707b2014-05-16 15:55:23 -070081qca-nss-drv-objs += nss_profiler.o
Guojun Jin20c98ad2014-05-02 14:08:48 -070082obj-y+= profiler/
Sakthi Vignesh Radhakrishnan3d1b0a12014-07-08 16:57:28 -070083obj-y+= nss_qdisc/
Guojun Jin20c98ad2014-05-02 14:08:48 -070084
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053085obj ?= .
Abhishek Rastogibc74e432013-04-02 10:28:22 +053086
87ifeq "$(CONFIG_ARCH_IPQ806X)" "y"
88qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o
Abhishek Rastogi38cffff2013-06-02 11:25:47 +053089ccflags-y += -I$(obj)/nss_hal/ipq806x
Abhishek Rastogibc74e432013-04-02 10:28:22 +053090endif