blob: 1a80e9f24884c067653dac796c50e34c7cc4bd36 [file] [log] [blame]
Jiafei Pan46367ad2018-03-02 07:23:30 +00001#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7
8# Process LS1043_DISABLE_TRUSTED_WDOG flag
9# TODO:Temparally disabled it on development phase, not implemented yet
10LS1043_DISABLE_TRUSTED_WDOG := 1
11
12# On Layerscape platforms, separate the code and read-only data sections to allow
13# mapping the former as executable and the latter as execute-never.
14SEPARATE_CODE_AND_RODATA := 1
15
16# Enable new version of image loading on Layerscape platforms
17LOAD_IMAGE_V2 := 1
18
19# Use generic OID definition (tbbr_oid.h)
20USE_TBBR_DEFS := 1
21
22
23COLD_BOOT_SINGLE_CPU := 1
24
25PLAT_INCLUDES += -Iinclude/common/tbbr
26
27PLAT_BL_COMMON_SOURCES += plat/layerscape/common/${ARCH}/ls_helpers.S \
28 plat/layerscape/common/ls_common.c
29
30include lib/xlat_tables_v2/xlat_tables.mk
31
32PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}
33
34BL1_SOURCES += \
35 drivers/io/io_fip.c \
36 drivers/io/io_memmap.c \
37 drivers/io/io_storage.c \
38 plat/layerscape/common/ls_timer.c \
39 plat/layerscape/common/ls_bl1_setup.c \
40 plat/layerscape/common/ls_io_storage.c
41
42BL2_SOURCES += drivers/io/io_fip.c \
43 drivers/io/io_memmap.c \
44 drivers/io/io_storage.c \
45 plat/layerscape/common/ls_timer.c \
46 plat/layerscape/common/ls_bl2_setup.c \
47 plat/layerscape/common/ls_io_storage.c
48BL2_SOURCES += plat/layerscape/common/${ARCH}/ls_bl2_mem_params_desc.c
49BL2_SOURCES += plat/layerscape/common/ls_image_load.c \
50 common/desc_image_load.c
51
52BL31_SOURCES += plat/layerscape/common/ls_bl31_setup.c \
53 plat/layerscape/common/ls_timer.c \
54 plat/layerscape/common/ls_topology.c \
55 plat/layerscape/common/ns_access.c \
56 plat/common/plat_psci_common.c
57# Verify build config
58# -------------------
59
60ifneq (${LOAD_IMAGE_V2}, 1)
61 $(error Error: Layerscape needs LOAD_IMAGE_V2=1)
62endif