xref: /rk3399_ARM-atf/plat/nvidia/tegra/platform.mk (revision 61f72a34250d063da67f4fc2b0eb8c3fda3376be)
1#
2# Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7SOC_DIR			:=	plat/nvidia/tegra/soc/${TARGET_SOC}
8
9# dump the state on crash console
10CRASH_REPORTING		:=	1
11$(eval $(call add_define,CRASH_REPORTING))
12
13# enable assert() for release/debug builds
14ENABLE_ASSERTIONS	:=	1
15
16# Disable the PSCI platform compatibility layer
17ENABLE_PLAT_COMPAT	:=	0
18
19# enable dynamic memory mapping
20PLAT_XLAT_TABLES_DYNAMIC :=	1
21$(eval $(call add_define,PLAT_XLAT_TABLES_DYNAMIC))
22
23# Enable PSCI v1.0 extended state ID format
24PSCI_EXTENDED_STATE_ID	:=	1
25
26# code and read-only data should be put on separate memory pages
27SEPARATE_CODE_AND_RODATA :=	1
28
29# do not use coherent memory
30USE_COHERENT_MEM	:=	0
31
32# do not enable SVE
33ENABLE_SVE_FOR_NS	:=	0
34
35include plat/nvidia/tegra/common/tegra_common.mk
36include ${SOC_DIR}/platform_${TARGET_SOC}.mk
37
38# modify BUILD_PLAT to point to SoC specific build directory
39BUILD_PLAT	:=	${BUILD_BASE}/${PLAT}/${TARGET_SOC}/${BUILD_TYPE}
40
41# enable signed comparison checks
42TF_CFLAGS	+= -Wsign-compare
43