blob: e8ccd39cad61f3dca57759ec21f714601111b04c [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) \
developer0fb30d52023-12-04 09:51:36 +080012 CONFIG_MTK_TOPS_L2TP_V2=$(CONFIG_MTK_TOPS_L2TP_V2) \
developer5d86c142023-12-06 14:18:27 +080013 CONFIG_MTK_TOPS_PPTP=$(CONFIG_MTK_TOPS_PPTP) \
developer1b2375f2023-08-31 14:38:35 +080014 CONFIG_MTK_TOPS_SECURE_FW=$(CONFIG_MTK_TOPS_SECURE_FW)
15
16EXTRA_CFLAGS+= \
17 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
18 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG))))
19
20EXTRA_CFLAGS+= \
21 -I$(LINUX_DIR)/drivers/net/ethernet/mediatek/ \
22 -I$(LINUX_DIR)/drivers/dma/ \
developer5d86c142023-12-06 14:18:27 +080023 -I$(LINUX_DIR)/net/l2tp/ \
developer1b2375f2023-08-31 14:38:35 +080024 -I$(KERNEL_BUILD_DIR)/pce/inc/ \
25 -DCONFIG_TOPS_TNL_NUM=$(CONFIG_TOPS_TNL_NUM) \
26 -DCONFIG_TOPS_TNL_MAP_BIT=$(CONFIG_TOPS_TNL_MAP_BIT) \
developer0fb30d52023-12-04 09:51:36 +080027 -DCONFIG_TOPS_TNL_TYPE_NUM=$(CONFIG_TOPS_TNL_TYPE_NUM) \
developer1b2375f2023-08-31 14:38:35 +080028 -Wall -Werror