blob: bc2cd5c2feccb00fdfab14775b7144e1e5b544cf [file] [log] [blame]
Radhakrishna Jiguru1c9b2252013-08-27 23:57:48 +05301##########################################################################
Zac Livingston866b0e22013-10-23 18:14:17 -06002# Copyright (c) 2013, 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
Pamidipati, Vijay7f413b52013-09-24 19:07:12 +053020qca-nss-drv-objs := nss_init.o nss_core.o nss_tx_rx.o nss_stats.o nss_pm.o
Abhishek Rastogibc74e432013-04-02 10:28:22 +053021
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053022obj-m += qca-nss-connmgr-ipv4.o
23obj-m += qca-nss-connmgr-ipv6.o
Bharath M Kumar614bbf82013-08-31 20:18:44 +053024obj-m += qca-nss-tunipip6.o
Bharath M Kumar0d87e912013-08-12 18:32:57 +053025ifeq "$(CONFIG_IPV6_SIT_6RD)" "y"
26obj-m += qca-nss-tun6rd.o
27qca-nss-tun6rd-objs := nss_tun6rd.o
28ccflags-y += -DNSS_TUN6RD_DEBUG_LEVEL=0
29endif
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053030
31qca-nss-connmgr-ipv4-objs := nss_connmgr_ipv4.o
32qca-nss-connmgr-ipv6-objs := nss_connmgr_ipv6.o
Bharath M Kumar614bbf82013-08-31 20:18:44 +053033qca-nss-tunipip6-objs := nss_tunipip6.o
Abhishek Rastogibc74e432013-04-02 10:28:22 +053034
Abhishek Rastogi38cffff2013-06-02 11:25:47 +053035ccflags-y += -I$(obj)/nss_hal/include -DNSS_DEBUG_LEVEL=0 -DNSS_EMPTY_BUFFER_SIZE=1792 -DNSS_PKT_STATS_ENABLED=0
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053036ccflags-y += -DNSS_CONNMGR_DEBUG_LEVEL=0
Bharath M Kumar614bbf82013-08-31 20:18:44 +053037ccflags-y += -DNSS_TUNIPIP6_DEBUG_LEVEL=0
Pamidipati, Vijay7f413b52013-09-24 19:07:12 +053038ccflags-y += -DNSS_PM_DEBUG_LEVEL=0
Pamidipati, Vijayc6ae5662013-06-10 11:03:55 +053039
40obj ?= .
Abhishek Rastogibc74e432013-04-02 10:28:22 +053041
42ifeq "$(CONFIG_ARCH_IPQ806X)" "y"
43qca-nss-drv-objs += nss_hal/ipq806x/nss_hal_pvt.o
Abhishek Rastogi38cffff2013-06-02 11:25:47 +053044ccflags-y += -I$(obj)/nss_hal/ipq806x
Abhishek Rastogibc74e432013-04-02 10:28:22 +053045endif