developer | 1b2375f | 2023-08-31 14:38:35 +0800 | [diff] [blame] | 1 | # 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 | |
| 7 | EXTRA_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) \ |
developer | 0fb30d5 | 2023-12-04 09:51:36 +0800 | [diff] [blame] | 12 | CONFIG_MTK_TOPS_L2TP_V2=$(CONFIG_MTK_TOPS_L2TP_V2) \ |
developer | 5d86c14 | 2023-12-06 14:18:27 +0800 | [diff] [blame] | 13 | CONFIG_MTK_TOPS_PPTP=$(CONFIG_MTK_TOPS_PPTP) \ |
developer | 1b2375f | 2023-08-31 14:38:35 +0800 | [diff] [blame] | 14 | CONFIG_MTK_TOPS_SECURE_FW=$(CONFIG_MTK_TOPS_SECURE_FW) |
| 15 | |
| 16 | EXTRA_CFLAGS+= \ |
| 17 | $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \ |
| 18 | $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) |
| 19 | |
| 20 | EXTRA_CFLAGS+= \ |
| 21 | -I$(LINUX_DIR)/drivers/net/ethernet/mediatek/ \ |
| 22 | -I$(LINUX_DIR)/drivers/dma/ \ |
developer | 5d86c14 | 2023-12-06 14:18:27 +0800 | [diff] [blame] | 23 | -I$(LINUX_DIR)/net/l2tp/ \ |
developer | 1b2375f | 2023-08-31 14:38:35 +0800 | [diff] [blame] | 24 | -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) \ |
developer | 0fb30d5 | 2023-12-04 09:51:36 +0800 | [diff] [blame] | 27 | -DCONFIG_TOPS_TNL_TYPE_NUM=$(CONFIG_TOPS_TNL_TYPE_NUM) \ |
developer | 1b2375f | 2023-08-31 14:38:35 +0800 | [diff] [blame] | 28 | -Wall -Werror |