mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

In order to modularize software libraries and platform drivers, we create makefile helpers to treat a folder as a basic compile unit. Each module has a build rule (rules.mk) to describe driver and software library source codes to be built in. Signed-off-by: Leon Chen <leon.chen@mediatek.com> Change-Id: Ib2113b259dc97937b7295b265509025b43b14077
51 lines
927 B
Makefile
51 lines
927 B
Makefile
#
|
|
# 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
|