blob: dab1b4bcb6e663ba9cdf079c302d95ce241a99f9 [file] [log] [blame]
developer1b2375f2023-08-31 14:38:35 +08001# SPDX-License-Identifier: GPL-2.0-or-later
2#
3# Copyright (C) 2023 Mediatek Inc. All Rights Reserved.
4# Author: Ren-Ting Wang <ren-ting.wang@mediatek.com>
5#
6
7EXTRA_KCONFIG+= \
8 CONFIG_MTK_TOPS_SUPPORT=m \
9 CONFIG_MTK_TOPS_GRE=$(CONFIG_MTK_TOPS_GRE) \
10 CONFIG_MTK_TOPS_GRETAP=$(CONFIG_MTK_TOPS_GRETAP) \
11 CONFIG_MTK_TOPS_L2TP=$(CONFIG_MTK_TOPS_L2TP) \
12 CONFIG_MTK_TOPS_UDP_L2TP_DATA=$(CONFIG_MTK_TOPS_UDP_L2TP_DATA) \
13 CONFIG_MTK_TOPS_SECURE_FW=$(CONFIG_MTK_TOPS_SECURE_FW)
14
15EXTRA_CFLAGS+= \
16 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
17 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG))))
18
19EXTRA_CFLAGS+= \
20 -I$(LINUX_DIR)/drivers/net/ethernet/mediatek/ \
21 -I$(LINUX_DIR)/drivers/dma/ \
22 -I$(KERNEL_BUILD_DIR)/pce/inc/ \
23 -DCONFIG_TOPS_TNL_NUM=$(CONFIG_TOPS_TNL_NUM) \
24 -DCONFIG_TOPS_TNL_MAP_BIT=$(CONFIG_TOPS_TNL_MAP_BIT) \
25 -Wall -Werror