developer | e5732cc | 2022-03-24 10:55:08 +0800 | [diff] [blame] | 1 | # |
| 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 |
| 10 | ifeq ($(BUILD_TYPE),release) |
| 11 | MTK_DEBUGSYS_LOCK := 1 |
| 12 | MTK_GET_PERM_DIS := 1 |
| 13 | ERRATA_KLEIN_2218950 := 0 |
| 14 | ERRATA_KLEIN_2184257 := 0 |
| 15 | ERRATA_KLEIN_BOOKER := 0 |
| 16 | ERRATA_MTH_BOOKER := 0 |
| 17 | ERRATA_MTHELP_BOOKER := 0 |
| 18 | CRASH_REPORTING := 1 |
| 19 | CONFIG_MTK_BL31_RAMDUMP := 0 |
| 20 | endif |
| 21 | |
| 22 | ifeq ($(BUILD_TYPE),debug) |
| 23 | MTK_PTP3_PROC_DEBUG := 1 |
| 24 | MTK_SRAMRC_DEBUG := 1 |
| 25 | MTK_IOMMU_DEBUG := 1 |
| 26 | MTK_DCM_DEBUG := 1 |
| 27 | MTK_EMI_MPU_DEBUG := 1 |
| 28 | endif |
| 29 | |
| 30 | ifeq (${SPD},none) |
| 31 | SPD_NONE:=1 |
| 32 | $(eval $(call add_define,SPD_NONE)) |
| 33 | endif |
| 34 | |
| 35 | # TEE OS config |
| 36 | ifeq ($(SPD), tbase) |
| 37 | CONFIG_TBASE := y |
| 38 | endif |
| 39 | |
| 40 | # MICROTRUST OS config |
| 41 | ifeq ($(SPD), teeid) |
| 42 | CONFIG_MICROTRUST_TEEI := y |
| 43 | endif |
| 44 | |
| 45 | ifeq (${CONFIG_ARCH_ARM_V8_2},y) |
| 46 | ARCH_VERSION := armv8_2 |
| 47 | endif |
| 48 | |
| 49 | ifeq (${CONFIG_ARCH_ARM_V9},y) |
| 50 | ARCH_VERSION := armv9 |
| 51 | endif |