blob: b716fa77264b40d0d0b41205738f1526d9c34093 [file] [log] [blame]
Ben Menchaca84f36632014-02-28 20:57:38 +00001##########################################################################
2# Copyright (c) 2014, The Linux Foundation. All rights reserved.
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##########################################################################
14
15# ###################################################
16# Makefile for the QCA NSS ECM
17# ###################################################
18
Nicolas Costaf46c33b2014-05-15 10:02:00 -050019obj-m += ecm.o
20
Hai Shalom81f4e202014-06-04 09:30:27 -070021ecm-y := \
Gareth Williams8932a912014-06-11 18:06:25 -070022 ecm_classifier_dscp.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050023 ecm_classifier_nl.o \
24 ecm_tracker_udp.o \
25 ecm_tracker_tcp.o \
26 ecm_tracker_datagram.o \
27 ecm_tracker.o \
28 ecm_front_end_ipv4.o \
29 ecm_front_end_ipv6.o \
30 ecm_db.o \
31 ecm_classifier_default.o \
32 ecm_conntrack_notifier.o \
33 ecm_interface.o \
34 ecm_bond_notifier.o \
35 ecm_init.o
Ben Menchaca84f36632014-02-28 20:57:38 +000036
Hai Shalom81f4e202014-06-04 09:30:27 -070037#
38# Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable
39# the Hy-Fi classifier in ECM. Currently disabled until
40# the integration with Hy-Fi is completed.
41#
42ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o
43
Gareth Williams8932a912014-06-11 18:06:25 -070044ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +000045ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1
46ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1
47ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1
48ccflags-y += -DECM_DB_DEBUG_LEVEL=1
49ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1
50ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1
51ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1
52ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1
53ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1
54ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1
55ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1
56ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1
57ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1
Hai Shalom81f4e202014-06-04 09:30:27 -070058ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE
Ben Menchaca84f36632014-02-28 20:57:38 +000059
Ben Menchaca84f36632014-02-28 20:57:38 +000060obj ?= .
61