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