blob: 6bb3b4ed5db2f690693da8d8ea00669326ae9bbb [file] [log] [blame]
developere5732cc2022-03-24 10:55:08 +08001#
2# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Conditional makefile variable assignment
8
9# Options depend on BUILD_TYPE variable
10ifeq ($(BUILD_TYPE),release)
11MTK_DEBUGSYS_LOCK := 1
12MTK_GET_PERM_DIS := 1
13ERRATA_KLEIN_2218950 := 0
14ERRATA_KLEIN_2184257 := 0
15ERRATA_KLEIN_BOOKER := 0
16ERRATA_MTH_BOOKER := 0
17ERRATA_MTHELP_BOOKER := 0
18CRASH_REPORTING := 1
19CONFIG_MTK_BL31_RAMDUMP := 0
20endif
21
22ifeq ($(BUILD_TYPE),debug)
23MTK_PTP3_PROC_DEBUG := 1
24MTK_SRAMRC_DEBUG := 1
25MTK_IOMMU_DEBUG := 1
26MTK_DCM_DEBUG := 1
27MTK_EMI_MPU_DEBUG := 1
28endif
29
30ifeq (${SPD},none)
31SPD_NONE:=1
32$(eval $(call add_define,SPD_NONE))
33endif
34
35# TEE OS config
36ifeq ($(SPD), tbase)
37CONFIG_TBASE := y
38endif
39
40# MICROTRUST OS config
41ifeq ($(SPD), teeid)
42CONFIG_MICROTRUST_TEEI := y
43endif
44
45ifeq (${CONFIG_ARCH_ARM_V8_2},y)
46ARCH_VERSION := armv8_2
47endif
48
49ifeq (${CONFIG_ARCH_ARM_V9},y)
50ARCH_VERSION := armv9
51endif