mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
refactor(build): avoid using values for comparison
With changes to refactor to use first platform makefiles then parse arch_features.mk file 'ENABLE_RME' will be initialised only when we define during build or at arch_features.mk thus making comparison of 'ENABLE_RME' to '0' incorrect. So keep BRBE disabled when RME is enabled at main makefile level. Change-Id: I7e3d99eb444678d63585bd5971ada627cfc4fcc9 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
This commit is contained in:
parent
fb7301170e
commit
d638029ffc
2 changed files with 4 additions and 3 deletions
3
Makefile
3
Makefile
|
@ -623,6 +623,9 @@ endif #(SUPPORT_STACK_MEMTAG)
|
|||
################################################################################
|
||||
# FEAT_RME
|
||||
ifeq (${ENABLE_RME},1)
|
||||
# RME doesn't support BRBE
|
||||
ENABLE_BRBE_FOR_NS := 0
|
||||
|
||||
# RME doesn't support PIE
|
||||
ifneq (${ENABLE_PIE},0)
|
||||
$(error ENABLE_RME does not support PIE)
|
||||
|
|
|
@ -72,9 +72,7 @@ endif
|
|||
|
||||
# enable unconditionally for all builds
|
||||
ifeq (${ARCH}, aarch64)
|
||||
ifeq (${ENABLE_RME},0)
|
||||
ENABLE_BRBE_FOR_NS := 2
|
||||
endif
|
||||
ENABLE_BRBE_FOR_NS := 2
|
||||
ENABLE_TRBE_FOR_NS := 2
|
||||
endif
|
||||
ENABLE_SYS_REG_TRACE_FOR_NS := 2
|
||||
|
|
Loading…
Add table
Reference in a new issue