summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/build_helpers/conditional_eval_options.mk
blob: 6bb3b4ed5db2f690693da8d8ea00669326ae9bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Copyright (c) 2022, MediaTek Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

# Conditional makefile variable assignment

# Options depend on BUILD_TYPE variable
ifeq ($(BUILD_TYPE),release)
MTK_DEBUGSYS_LOCK := 1
MTK_GET_PERM_DIS := 1
ERRATA_KLEIN_2218950 := 0
ERRATA_KLEIN_2184257 := 0
ERRATA_KLEIN_BOOKER := 0
ERRATA_MTH_BOOKER := 0
ERRATA_MTHELP_BOOKER := 0
CRASH_REPORTING := 1
CONFIG_MTK_BL31_RAMDUMP := 0
endif

ifeq ($(BUILD_TYPE),debug)
MTK_PTP3_PROC_DEBUG := 1
MTK_SRAMRC_DEBUG := 1
MTK_IOMMU_DEBUG := 1
MTK_DCM_DEBUG := 1
MTK_EMI_MPU_DEBUG := 1
endif

ifeq (${SPD},none)
SPD_NONE:=1
$(eval $(call add_define,SPD_NONE))
endif

# TEE OS config
ifeq ($(SPD), tbase)
CONFIG_TBASE := y
endif

# MICROTRUST OS config
ifeq ($(SPD), teeid)
CONFIG_MICROTRUST_TEEI := y
endif

ifeq (${CONFIG_ARCH_ARM_V8_2},y)
ARCH_VERSION := armv8_2
endif

ifeq (${CONFIG_ARCH_ARM_V9},y)
ARCH_VERSION := armv9
endif