mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00

BL2_AT_EL3 is an overloaded macro which has two uses: 1. When BL2 is entry point into TF-A(no BL1) 2. When BL2 is running at EL3 exception level These two scenarios are not exactly same even though first implicitly means second to be true. To distinguish between these two use cases we introduce new macros. BL2_AT_EL3 is renamed to RESET_TO_BL2 to better convey both 1. and 2. Additional macro BL2_RUNS_AT_EL3 is added to cover all scenarious where BL2 runs at EL3 (including four world systems). BREAKING CHANGE: BL2_AT_EL3 renamed to RESET_TO_BL2 across the repository. Change-Id: I477e1d0f843b44b799c216670e028fcb3509fb72 Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
105 lines
2.6 KiB
Makefile
105 lines
2.6 KiB
Makefile
#
|
|
# Copyright 2018-2021 NXP
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
#
|
|
|
|
###############################################################################
|
|
# Flow begins in BL2 at EL3 mode
|
|
RESET_TO_BL2 := 1
|
|
|
|
# Though one core is powered up by default, there are
|
|
# platform specific ways to release more than one core
|
|
COLD_BOOT_SINGLE_CPU := 0
|
|
|
|
PROGRAMMABLE_RESET_ADDRESS := 1
|
|
|
|
USE_COHERENT_MEM := 0
|
|
|
|
# Use generic OID definition (tbbr_oid.h)
|
|
USE_TBBR_DEFS := 1
|
|
|
|
PLAT_XLAT_TABLES_DYNAMIC := 0
|
|
|
|
ENABLE_SVE_FOR_NS := 0
|
|
|
|
ENABLE_STACK_PROTECTOR := 0
|
|
|
|
ERROR_DEPRECATED := 0
|
|
|
|
LS_DISABLE_TRUSTED_WDOG := 1
|
|
|
|
# On ARM platforms, separate the code and read-only data sections to allow
|
|
# mapping the former as executable and the latter as execute-never.
|
|
SEPARATE_CODE_AND_RODATA := 1
|
|
|
|
# Enable new version of image loading on ARM platforms
|
|
LOAD_IMAGE_V2 := 1
|
|
|
|
RCW := ""
|
|
|
|
ifneq (${SPD},none)
|
|
$(eval $(call add_define, NXP_LOAD_BL32))
|
|
endif
|
|
|
|
###############################################################################
|
|
|
|
PLAT_TOOL_PATH := tools/nxp
|
|
CREATE_PBL_TOOL_PATH := ${PLAT_TOOL_PATH}/create_pbl
|
|
PLAT_SETUP_PATH := ${PLAT_PATH}/common/setup
|
|
|
|
PLAT_INCLUDES += -I${PLAT_SETUP_PATH}/include \
|
|
-Iinclude/plat/arm/common \
|
|
-Iinclude/drivers/arm \
|
|
-Iinclude/lib \
|
|
-Iinclude/drivers/io \
|
|
-Ilib/psci
|
|
|
|
# Required without TBBR.
|
|
# To include the defines for DDR PHY Images.
|
|
PLAT_INCLUDES += -Iinclude/common/tbbr
|
|
|
|
include ${PLAT_SETUP_PATH}/core.mk
|
|
PLAT_BL_COMMON_SOURCES += ${CPU_LIBS} \
|
|
plat/nxp/common/setup/ls_err.c \
|
|
plat/nxp/common/setup/ls_common.c
|
|
|
|
ifneq (${ENABLE_STACK_PROTECTOR},0)
|
|
PLAT_BL_COMMON_SOURCES += ${PLAT_SETUP_PATH}/ls_stack_protector.c
|
|
endif
|
|
|
|
include lib/xlat_tables_v2/xlat_tables.mk
|
|
|
|
PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}
|
|
|
|
BL2_SOURCES += drivers/io/io_fip.c \
|
|
drivers/io/io_memmap.c \
|
|
drivers/io/io_storage.c \
|
|
common/desc_image_load.c \
|
|
plat/nxp/common/setup/ls_image_load.c \
|
|
plat/nxp/common/setup/ls_io_storage.c \
|
|
plat/nxp/common/setup/ls_bl2_el3_setup.c \
|
|
plat/nxp/common/setup/${ARCH}/ls_bl2_mem_params_desc.c
|
|
|
|
BL31_SOURCES += plat/nxp/common/setup/ls_bl31_setup.c \
|
|
|
|
ifeq (${LS_EL3_INTERRUPT_HANDLER}, yes)
|
|
$(eval $(call add_define, LS_EL3_INTERRUPT_HANDLER))
|
|
BL31_SOURCES += plat/nxp/common/setup/ls_interrupt_mgmt.c
|
|
endif
|
|
|
|
ifeq (${TEST_BL31}, 1)
|
|
BL31_SOURCES += ${TEST_SOURCES}
|
|
endif
|
|
|
|
# Verify build config
|
|
# -------------------
|
|
|
|
ifneq (${LOAD_IMAGE_V2}, 1)
|
|
$(error Error: Layerscape needs LOAD_IMAGE_V2=1)
|
|
else
|
|
$(eval $(call add_define,LOAD_IMAGE_V2))
|
|
endif
|
|
|
|
include $(CREATE_PBL_TOOL_PATH)/create_pbl.mk
|