blob: eae8f589d5e870e2a576058e49b58c51c27dfa4e [file] [log] [blame]
Stephen Wang09442222016-08-23 21:00:58 -07001ccflags-y := -I$(obj)/../exports -I$(obj)/.. -I$(obj)/nss_hal/include
2ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
Bhaskar Valaboju3f08ac82019-09-11 19:04:49 +05303ccflags-$(NSS_BRIDGE_MGR_OVS_ENABLE) += -DNSS_BRIDGE_MGR_OVS_ENABLE
Stephen Wang09442222016-08-23 21:00:58 -07004
5obj-m += qca-nss-bridge-mgr.o
6qca-nss-bridge-mgr-objs := nss_bridge_mgr.o
Bhaskar Valaboju3f08ac82019-09-11 19:04:49 +05307ifeq ($(NSS_BRIDGE_MGR_OVS_ENABLE), y)
8qca-nss-bridge-mgr-objs += nss_bridge_mgr_ovs.o
9endif
Stephen Wang09442222016-08-23 21:00:58 -070010
11ccflags-y += -DNSS_BRIDGE_MGR_DEBUG_LEVEL=0
Gaurao Chaudhari767b6772019-01-28 14:46:29 -080012ccflags-y += -Werror
Yu Huang8ccd6d62016-10-05 14:57:47 -070013
Suman Ghoshf24d3912018-08-17 20:44:19 +053014ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64))
Yu Huang8ccd6d62016-10-05 14:57:47 -070015ccflags-y += -DNSS_BRIDGE_MGR_PPE_SUPPORT
16endif
17
Murat Sezgin83250472020-06-10 16:58:22 -070018ifneq (,$(filter $(CONFIG_BONDING),y m))
Ratheesh Kannoth40189802020-04-28 10:10:43 +053019ccflags-y += -DBONDING_SUPPORT
20endif