Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # indicate the reset vector address can be programmed |
| 8 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 9 | USE_COHERENT_MEM := 0 |
| 10 | RESET_TO_BL31 := 0 |
| 11 | ENABLE_STACK_PROTECTOR := 0 |
| 12 | LS1043_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 13 | drivers/arm/gic/v2/gicv2_main.c \ |
| 14 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 15 | plat/common/plat_gicv2.c \ |
| 16 | plat/layerscape/board/ls1043/ls_gic.c |
| 17 | |
| 18 | |
| 19 | LS1043_INTERCONNECT_SOURCES := drivers/arm/cci/cci.c |
| 20 | |
| 21 | LS1043_SECURITY_SOURCES := plat/layerscape/common/ls_tzc380.c \ |
| 22 | plat/layerscape/board/ls1043/ls1043_security.c |
| 23 | |
| 24 | PLAT_INCLUDES := -Iplat/layerscape/board/ls1043/include \ |
Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 25 | -Iplat/layerscape/common/include \ |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 26 | -Iinclude/lib |
Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 27 | |
| 28 | |
Julius Werner | 6b88b65 | 2018-11-27 17:50:28 -0800 | [diff] [blame] | 29 | PLAT_BL_COMMON_SOURCES := plat/layerscape/common/aarch64/ls_console.S |
Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 30 | |
| 31 | LS1043_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S |
| 32 | |
| 33 | LS1043_CPU_LIBS += lib/cpus/aarch64/cortex_a53.S |
| 34 | |
| 35 | BL1_SOURCES += plat/layerscape/board/ls1043/ls1043_bl1_setup.c \ |
| 36 | plat/layerscape/board/ls1043/ls1043_err.c \ |
| 37 | drivers/delay_timer/delay_timer.c \ |
| 38 | |
| 39 | BL1_SOURCES += plat/layerscape/board/ls1043/${ARCH}/ls1043_helpers.S \ |
| 40 | ${LS1043_CPU_LIBS} \ |
| 41 | ${LS1043_INTERCONNECT_SOURCES} \ |
| 42 | $(LS1043_SECURITY_SOURCES) |
| 43 | |
| 44 | |
| 45 | BL2_SOURCES += drivers/delay_timer/delay_timer.c \ |
| 46 | plat/layerscape/board/ls1043/ls1043_bl2_setup.c \ |
| 47 | plat/layerscape/board/ls1043/ls1043_err.c \ |
| 48 | ${LS1043_SECURITY_SOURCES} |
| 49 | |
| 50 | |
| 51 | BL31_SOURCES += plat/layerscape/board/ls1043/ls1043_bl31_setup.c \ |
| 52 | plat/layerscape/board/ls1043/ls1043_topology.c \ |
| 53 | plat/layerscape/board/ls1043/aarch64/ls1043_helpers.S \ |
| 54 | plat/layerscape/board/ls1043/ls1043_psci.c \ |
| 55 | drivers/delay_timer/delay_timer.c \ |
| 56 | ${LS1043_CPU_LIBS} \ |
| 57 | ${LS1043_GIC_SOURCES} \ |
| 58 | ${LS1043_INTERCONNECT_SOURCES} \ |
| 59 | ${LS1043_SECURITY_SOURCES} |
| 60 | |
| 61 | # Disable the PSCI platform compatibility layer |
Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 62 | MULTI_CONSOLE_API := 1 |
| 63 | |
| 64 | # Enable workarounds for selected Cortex-A53 erratas. |
| 65 | ERRATA_A53_855873 := 1 |
| 66 | |
| 67 | ifneq (${ENABLE_STACK_PROTECTOR},0) |
| 68 | PLAT_BL_COMMON_SOURCES += plat/layerscape/board/ls1043/ls1043_stack_protector.c |
| 69 | endif |
| 70 | |
| 71 | ifeq (${ARCH},aarch32) |
| 72 | NEED_BL32 := yes |
| 73 | endif |
| 74 | |
| 75 | include plat/layerscape/common/ls_common.mk |