blob: 831b18b277ff4fb6a933950fc067593a14f29663 [file] [log] [blame]
Ben Menchaca84f36632014-02-28 20:57:38 +00001##########################################################################
Murat Sezgin1957a982015-05-21 22:22:25 +01002# Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
Ben Menchaca84f36632014-02-28 20:57:38 +00003# 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
Murat Sezgin1957a982015-05-21 22:22:25 +010021# #####################################################
22# Example builds.
23# Enable example build by using the menuconfig options.
24# #####################################################
25ifeq ($(EXAMPLES_BUILD_PCC),y)
26obj-m += examples/ecm_pcc_test.o
27endif
28
Hai Shalom81f4e202014-06-04 09:30:27 -070029ecm-y := \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050030 ecm_tracker_udp.o \
31 ecm_tracker_tcp.o \
32 ecm_tracker_datagram.o \
33 ecm_tracker.o \
Murat Sezgin3ab259d2015-06-11 14:15:35 -070034 frontends/ecm_front_end_ipv4.o \
35 frontends/ecm_front_end_ipv6.o \
Murat Sezgin5f138492015-06-11 15:18:27 -070036 frontends/ecm_front_end_common.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050037 ecm_db.o \
Murat Sezginc725ad82016-04-13 17:12:50 -070038 ecm_classifier.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050039 ecm_classifier_default.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050040 ecm_interface.o \
Murat Sezgindf98fce2016-08-26 17:56:39 -070041 ecm_conntrack_notifier.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050042 ecm_init.o
Ben Menchaca84f36632014-02-28 20:57:38 +000043
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080044# #############################################################################
Xiaoping Fanb9390542015-07-20 18:15:21 -070045# Define ECM_FRONT_END_NSS_ENABLE=y in order to select
46# nss as ECM's front end.
47# #############################################################################
48ifeq ($(ECM_FRONT_END_NSS_ENABLE),)
49ECM_FRONT_END_NSS_ENABLE=y
50endif
51ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ipv4.o
52ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ported_ipv4.o
Xiaoping Fanb9390542015-07-20 18:15:21 -070053ccflags-$(ECM_FRONT_END_NSS_ENABLE) += -DECM_FRONT_END_NSS_ENABLE
54
55# #############################################################################
56# Define ECM_FRONT_END_SFE_ENABLE=y in order to select
57# sfe as ECM's front end.
58# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -080059ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Xiaoping Fanb9390542015-07-20 18:15:21 -070060ifeq ($(ECM_FRONT_END_SFE_ENABLE),)
61ECM_FRONT_END_SFE_ENABLE=y
62endif
Murat Sezgine1c51d82016-02-10 16:42:58 -080063endif
Xiaoping Fanb9390542015-07-20 18:15:21 -070064ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ipv4.o
65ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv4.o
Xiaoping Fanb9390542015-07-20 18:15:21 -070066ccflags-$(ECM_FRONT_END_SFE_ENABLE) += -DECM_FRONT_END_SFE_ENABLE
67
68# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080069# Define ECM_INTERFACE_BOND_ENABLE=y in order to enable
70# Bonding / Link Aggregation support.
71# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -080072ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Xiaoping Fanb9390542015-07-20 18:15:21 -070073ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080074ECM_INTERFACE_BOND_ENABLE=y
75endif
Murat Sezgine1c51d82016-02-10 16:42:58 -080076endif
Murat Sezgin8e10a7c2015-06-11 15:49:24 -070077ecm-$(ECM_INTERFACE_BOND_ENABLE) += frontends/nss/ecm_nss_bond_notifier.o
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080078ccflags-$(ECM_INTERFACE_BOND_ENABLE) += -DECM_INTERFACE_BOND_ENABLE
Hai Shalom81f4e202014-06-04 09:30:27 -070079
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080080# #############################################################################
ratheesh kannotha32fdd12015-09-09 08:02:58 +053081# Define ECM_INTERFACE_PPPOE_ENABLE=y in order
82# to enable support for PPPoE acceleration.
83# #############################################################################
84ECM_INTERFACE_PPPOE_ENABLE=y
85ccflags-$(ECM_INTERFACE_PPPOE_ENABLE) += -DECM_INTERFACE_PPPOE_ENABLE
86
87# #############################################################################
88# Define ECM_INTERFACE_L2TPV2_ENABLE=y in order
89# to enable support for l2tpv2 acceleration.
90# #############################################################################
ratheesh kannotha32fdd12015-09-09 08:02:58 +053091ECM_INTERFACE_L2TPV2_ENABLE=y
ratheesh kannotha32fdd12015-09-09 08:02:58 +053092ccflags-$(ECM_INTERFACE_L2TPV2_ENABLE) += -DECM_INTERFACE_L2TPV2_ENABLE
93
94# #############################################################################
Shyam Sunder23f2e542015-09-28 14:56:49 +053095# Define ECM_INTERFACE_PPTP_ENABLE=y in order
96# to enable support for pptp acceleration.
97# #############################################################################
Shyam Sunder23f2e542015-09-28 14:56:49 +053098ECM_INTERFACE_PPTP_ENABLE=y
Shyam Sunder23f2e542015-09-28 14:56:49 +053099ccflags-$(ECM_INTERFACE_PPTP_ENABLE) += -DECM_INTERFACE_PPTP_ENABLE
100
101# #############################################################################
102# if pppoe, l2tpv2, pptp acceleration is enabled, ppp should
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530103# be enabled automatically
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800104# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800105ECM_INTERFACE_PPP_ENABLE=y
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530106ifeq "$(ECM_INTERFACE_PPPOE_ENABLE)" "n"
107ifeq "$(ECM_INTERFACE_L2TPV2_ENABLE)" "n"
Shyam Sunder23f2e542015-09-28 14:56:49 +0530108ifeq "$(ECM_INTERFACE_PPTP_ENABLE)" "n"
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530109ECM_INTERFACE_PPP_ENABLE=n
110endif
111endif
Shyam Sunder23f2e542015-09-28 14:56:49 +0530112endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800113ccflags-$(ECM_INTERFACE_PPP_ENABLE) += -DECM_INTERFACE_PPP_ENABLE
114
115# #############################################################################
ratheesh kannothcfdcb332015-12-24 07:19:18 +0530116# Define ECM_INTERFACE_MAP_T_ENABLE=y in order
117# to enable support for MAP-T interface.
118# #############################################################################
119ifneq ($(findstring 3.14, $(KERNELVERSION)),)
120ECM_INTERFACE_MAP_T_ENABLE=y
121endif
122ccflags-$(ECM_INTERFACE_MAP_T_ENABLE) += -DECM_INTERFACE_MAP_T_ENABLE
123
124# #############################################################################
Murat Sezginb3731e82014-11-26 12:20:59 -0800125# Define ECM_INTERFACE_SIT_ENABLE=y in order
126# to enable support for SIT interface.
127# #############################################################################
Murat Sezginb3731e82014-11-26 12:20:59 -0800128ECM_INTERFACE_SIT_ENABLE=y
Murat Sezginb3731e82014-11-26 12:20:59 -0800129ccflags-$(ECM_INTERFACE_SIT_ENABLE) += -DECM_INTERFACE_SIT_ENABLE
130
131# #############################################################################
Murat Sezginc1402562015-03-12 12:32:20 -0700132# Define ECM_INTERFACE_TUNIPIP6_ENABLE=y in order
133# to enable support for TUNIPIP6 interface.
134# #############################################################################
Murat Sezginc1402562015-03-12 12:32:20 -0700135ECM_INTERFACE_TUNIPIP6_ENABLE=y
Murat Sezginc1402562015-03-12 12:32:20 -0700136ccflags-$(ECM_INTERFACE_TUNIPIP6_ENABLE) += -DECM_INTERFACE_TUNIPIP6_ENABLE
137
138# #############################################################################
Shyam Sunder1f037262015-05-18 20:04:13 +0530139# Define ECM_MULTICAST_ENABLE=y in order to enable support for ECM Multicast
140# #############################################################################
Xiaoping Fanb9390542015-07-20 18:15:21 -0700141ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin34f45c12015-11-19 13:25:22 -0800142#
143# TODO: This is a workaround for external builds in which the qca-mcs source
144# code is not available. This will be fixed later by breaking the dependency from ECM
145# to qca-mcs
146#
147MCS_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-mcs=y" $(TOPDIR)/.config)
148MCS_ENABLED:=CONFIG_PACKAGE_kmod-qca-mcs=y
149ifeq ($(MCS_CONFIG),$(MCS_ENABLED))
Shyam Sunderbe633de2016-10-06 17:02:31 +0530150ECM_MULTICAST_ENABLE=y
Shyam Sunderdd682692015-05-04 18:15:18 +0530151ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv4.o
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700152ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv6.o
Shyam Sunder1f037262015-05-18 20:04:13 +0530153ccflags-$(ECM_MULTICAST_ENABLE) += -DECM_MULTICAST_ENABLE
Karthik Hariharan3e964a32015-09-22 21:40:52 +0530154endif
Murat Sezgin34f45c12015-11-19 13:25:22 -0800155endif
Shyam Sunder1f037262015-05-18 20:04:13 +0530156
157# #############################################################################
Gareth Williams141d2382014-11-25 11:35:19 -0800158# Define ECM_INTERFACE_VLAN_ENABLE=y in order to enable support for VLAN
159# #############################################################################
Gareth Williams141d2382014-11-25 11:35:19 -0800160ECM_INTERFACE_VLAN_ENABLE=y
Gareth Williams141d2382014-11-25 11:35:19 -0800161ccflags-$(ECM_INTERFACE_VLAN_ENABLE) += -DECM_INTERFACE_VLAN_ENABLE
162
163# #############################################################################
Murat Sezgin69a27532015-03-12 14:09:40 -0700164# Define ECM_INTERFACE_IPSEC_ENABLE=y in order to enable support for IPSEC
165# #############################################################################
166ECM_INTERFACE_IPSEC_ENABLE=y
167ccflags-$(ECM_INTERFACE_IPSEC_ENABLE) += -DECM_INTERFACE_IPSEC_ENABLE
168
169# #############################################################################
Gareth Williams8ac34292015-03-17 14:06:58 +0000170# Define ECM_IPV6_ENABLE=y in order to enable IPv6 support in the ECM.
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800171# #############################################################################
Gareth Williams8ac34292015-03-17 14:06:58 +0000172ECM_IPV6_ENABLE=y
Xiaoping Fanb9390542015-07-20 18:15:21 -0700173ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700174ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ipv6.o
175ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ported_ipv6.o
Xiaoping Fanb9390542015-07-20 18:15:21 -0700176endif
177ifeq ($(ECM_FRONT_END_SFE_ENABLE), y)
178ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ipv6.o
179ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv6.o
180endif
Gareth Williams8ac34292015-03-17 14:06:58 +0000181ccflags-$(ECM_IPV6_ENABLE) += -DECM_IPV6_ENABLE
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800182
183# #############################################################################
184# Define ECM_CLASSIFIER_NL_ENABLE=y in order to enable NL classifier.
185# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -0800186ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800187ECM_CLASSIFIER_NL_ENABLE=y
Murat Sezgine1c51d82016-02-10 16:42:58 -0800188endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800189ecm-$(ECM_CLASSIFIER_NL_ENABLE) += ecm_classifier_nl.o
190ccflags-$(ECM_CLASSIFIER_NL_ENABLE) += -DECM_CLASSIFIER_NL_ENABLE
191
192# #############################################################################
193# Define ECM_CLASSIFIER_DSCP_ENABLE=y in order to enable DSCP classifier.
194# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -0800195ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800196ECM_CLASSIFIER_DSCP_ENABLE=y
Murat Sezgine1c51d82016-02-10 16:42:58 -0800197endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800198ecm-$(ECM_CLASSIFIER_DSCP_ENABLE) += ecm_classifier_dscp.o
199ccflags-$(ECM_CLASSIFIER_DSCP_ENABLE) += -DECM_CLASSIFIER_DSCP_ENABLE
200
201# #############################################################################
202# Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable
203# the Hy-Fi classifier in ECM. Currently disabled until the integration
204# with Hy-Fi is completed.
205# #############################################################################
Murat Sezgin34f45c12015-11-19 13:25:22 -0800206#
207# TODO: This is a workaround for external builds in which the qca-hyfi-bridge source
208# code is not available. This will be fixed later by breaking the dependency from ECM
209# to qca-hyfi-bridge
210#
211HYFI_BRIDGE_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y" $(TOPDIR)/.config)
212HYFI_BRIDGE_ENABLED:=CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y
213ifeq ($(HYFI_BRIDGE_CONFIG),$(HYFI_BRIDGE_ENABLED))
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800214ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o
215ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE
Murat Sezgin34f45c12015-11-19 13:25:22 -0800216endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800217
218# #############################################################################
Gareth Williamsdcda9b92015-05-13 10:08:15 +0100219# Define ECM_CLASSIFIER_PCC_ENABLE=y in order to enable
220# the Parental Controls subsystem classifier in ECM. Currently disabled until
221# customers require it / if they need to integrate their Parental Controls with it.
222# #############################################################################
223ECM_CLASSIFIER_PCC_ENABLE=y
224ecm-$(ECM_CLASSIFIER_PCC_ENABLE) += ecm_classifier_pcc.o
225ccflags-$(ECM_CLASSIFIER_PCC_ENABLE) += -DECM_CLASSIFIER_PCC_ENABLE
226
227# #############################################################################
Murat Sezgin8d916a12015-03-18 15:56:50 -0700228# Define ECM_NON_PORTED_SUPPORT_ENABLE=y in order to enable non-ported protocol.
229# #############################################################################
230ECM_NON_PORTED_SUPPORT_ENABLE=y
Xiaoping Fanb9390542015-07-20 18:15:21 -0700231ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin8d916a12015-03-18 15:56:50 -0700232ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv4.o
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700233ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv6.o
Xiaoping Fanb9390542015-07-20 18:15:21 -0700234endif
235ifeq ($(ECM_FRONT_END_SFE_ENABLE), y)
236ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv4.o
237ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv6.o
238endif
Murat Sezgin8d916a12015-03-18 15:56:50 -0700239ccflags-$(ECM_NON_PORTED_SUPPORT_ENABLE) += -DECM_NON_PORTED_SUPPORT_ENABLE
240
Gareth Williamsf98d4192015-03-11 16:55:41 +0000241# #############################################################################
242# Define ECM_STATE_OUTPUT_ENABLE=y to support XML state output
243# #############################################################################
244ECM_STATE_OUTPUT_ENABLE=y
245ecm-$(ECM_STATE_OUTPUT_ENABLE) += ecm_state.o
246ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE
Murat Sezgin8d916a12015-03-18 15:56:50 -0700247
248# #############################################################################
Gareth Williams85331c92015-03-11 20:39:18 +0000249# Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output
250# #############################################################################
251ECM_DB_ADVANCED_STATS_ENABLE=y
252ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE
253
254# #############################################################################
Gareth Williamsb5903892015-03-20 15:13:07 +0000255# Define ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y in order to enable
256# the database to track relationships between objects.
257# #############################################################################
258ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y
259ccflags-$(ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE) += -DECM_DB_XREF_ENABLE
260
261# #############################################################################
Gareth Williams88be3722015-03-23 19:51:01 +0000262# Define ECM_TRACKER_DPI_SUPPORT_ENABLE=y in order to enable support for
263# deep packet inspection and tracking of data with the trackers.
264# #############################################################################
265ECM_TRACKER_DPI_SUPPORT_ENABLE=y
266ccflags-$(ECM_TRACKER_DPI_SUPPORT_ENABLE) += -DECM_TRACKER_DPI_SUPPORT_ENABLE
267
268# #############################################################################
Gareth Williamsb39e7c22015-03-25 10:15:33 +0000269# Define ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y in order to enable
270# support for the database keeping lists of connections that are assigned
271# on a per TYPE of classifier basis.
272# #############################################################################
273ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y
274ccflags-$(ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE) += -DECM_DB_CTA_TRACK_ENABLE
275
276# #############################################################################
Murat Sezgin8c345822015-05-27 15:35:38 -0700277# Define ECM_BAND_STEERING_ENABLE=y in order to enable
278# band steering feature.
279# #############################################################################
280ECM_BAND_STEERING_ENABLE=y
281ccflags-$(ECM_BAND_STEERING_ENABLE) += -DECM_BAND_STEERING_ENABLE
282
283# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800284# Debug flags, set these to = 0 if you want to disable all debugging for that
285# file.
286# By turning off debugs you gain maximum ECM performance.
287# #############################################################################
Murat Sezginc725ad82016-04-13 17:12:50 -0700288ccflags-y += -DECM_CLASSIFIER_DEBUG_LEVEL=1
Gareth Williams8932a912014-06-11 18:06:25 -0700289ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000290ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1
Gareth Williamsdcda9b92015-05-13 10:08:15 +0100291ccflags-y += -DECM_CLASSIFIER_PCC_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000292ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1
293ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1
294ccflags-y += -DECM_DB_DEBUG_LEVEL=1
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700295ccflags-y += -DECM_INIT_DEBUG_LEVEL=3
Ben Menchaca84f36632014-02-28 20:57:38 +0000296ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1
297ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1
Murat Sezgin5f138492015-06-11 15:18:27 -0700298ccflags-y += -DECM_FRONT_END_COMMON_DEBUG_LEVEL=1
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700299ccflags-y += -DECM_NSS_IPV4_DEBUG_LEVEL=1
300ccflags-y += -DECM_NSS_PORTED_IPV4_DEBUG_LEVEL=1
301ccflags-y += -DECM_NSS_NON_PORTED_IPV4_DEBUG_LEVEL=1
302ccflags-y += -DECM_NSS_MULTICAST_IPV4_DEBUG_LEVEL=1
303ccflags-y += -DECM_NSS_IPV6_DEBUG_LEVEL=1
304ccflags-y += -DECM_NSS_PORTED_IPV6_DEBUG_LEVEL=1
305ccflags-y += -DECM_NSS_NON_PORTED_IPV6_DEBUG_LEVEL=1
306ccflags-y += -DECM_NSS_MULTICAST_IPV6_DEBUG_LEVEL=1
Xiaoping Fanb9390542015-07-20 18:15:21 -0700307ccflags-y += -DECM_SFE_IPV4_DEBUG_LEVEL=1
308ccflags-y += -DECM_SFE_PORTED_IPV4_DEBUG_LEVEL=1
309ccflags-y += -DECM_SFE_NON_PORTED_IPV4_DEBUG_LEVEL=1
310ccflags-y += -DECM_SFE_IPV6_DEBUG_LEVEL=1
311ccflags-y += -DECM_SFE_PORTED_IPV6_DEBUG_LEVEL=1
312ccflags-y += -DECM_SFE_NON_PORTED_IPV6_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000313ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1
314ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1
315ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1
316ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1
317ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1
318ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1
319ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1
Gareth Williamsf98d4192015-03-11 16:55:41 +0000320ccflags-y += -DECM_STATE_DEBUG_LEVEL=1
Stephen Wangaa7e5f72015-05-12 15:25:12 -0700321ccflags-y += -DECM_OPENWRT_SUPPORT=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000322
Xiaoping Fanb9390542015-07-20 18:15:21 -0700323ccflags-y += -I$(obj)/ -I$(obj)/frontends/include -I$(obj)/frontends/nss -I$(obj)/frontends/sfe
Murat Sezgin7c12aba2015-03-16 12:01:57 -0700324
Ben Menchaca84f36632014-02-28 20:57:38 +0000325obj ?= .
326