Yann Gautier | 4b0c72a | 2018-07-16 10:54:09 +0200 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ARM_CORTEX_A7 := yes |
| 8 | ARM_WITH_NEON := yes |
| 9 | LOAD_IMAGE_V2 := 1 |
| 10 | BL2_AT_EL3 := 1 |
| 11 | ENABLE_PLAT_COMPAT := 0 |
| 12 | USE_COHERENT_MEM := 0 |
| 13 | |
| 14 | STM32_TF_VERSION ?= 0 |
| 15 | |
| 16 | # Not needed for Cortex-A7 |
| 17 | WORKAROUND_CVE_2017_5715:= 0 |
| 18 | |
| 19 | PLAT_INCLUDES := -Iplat/st/stm32mp1/include/ |
| 20 | PLAT_INCLUDES += -Iinclude/common/tbbr |
| 21 | PLAT_INCLUDES += -Iinclude/drivers/st |
| 22 | |
| 23 | include lib/libfdt/libfdt.mk |
| 24 | |
| 25 | PLAT_BL_COMMON_SOURCES := plat/st/stm32mp1/stm32mp1_common.c |
| 26 | |
| 27 | PLAT_BL_COMMON_SOURCES += drivers/console/aarch32/console.S \ |
| 28 | drivers/st/uart/aarch32/stm32_console.S |
| 29 | |
| 30 | ifneq (${ENABLE_STACK_PROTECTOR},0) |
| 31 | PLAT_BL_COMMON_SOURCES += plat/st/stm32mp1/stm32mp1_stack_protector.c |
| 32 | endif |
| 33 | |
| 34 | include lib/xlat_tables_v2/xlat_tables.mk |
| 35 | PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} |
| 36 | |
| 37 | PLAT_BL_COMMON_SOURCES += lib/cpus/aarch32/cortex_a7.S |
| 38 | |
| 39 | PLAT_BL_COMMON_SOURCES += ${LIBFDT_SRCS} \ |
| 40 | drivers/delay_timer/delay_timer.c \ |
| 41 | drivers/delay_timer/generic_delay_timer.c \ |
| 42 | plat/st/stm32mp1/stm32mp1_helper.S |
| 43 | |
| 44 | BL2_SOURCES += drivers/io/io_dummy.c \ |
| 45 | drivers/io/io_storage.c \ |
| 46 | plat/st/stm32mp1/bl2_io_storage.c \ |
| 47 | plat/st/stm32mp1/bl2_plat_setup.c |
| 48 | |
| 49 | BL2_SOURCES += common/desc_image_load.c \ |
| 50 | plat/st/stm32mp1/plat_bl2_mem_params_desc.c \ |
| 51 | plat/st/stm32mp1/plat_image_load.c |
| 52 | |
| 53 | # For memory footprint optimization, build with thumb and interwork support |
| 54 | ASFLAGS += -mthumb -mthumb-interwork |
| 55 | TF_CFLAGS += -mthumb -mthumb-interwork |