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 \ |
Yann Gautier | 9aea69e | 2018-07-24 17:13:36 +0200 | [diff] [blame] | 42 | drivers/st/clk/stm32mp1_clk.c \ |
| 43 | drivers/st/clk/stm32mp1_clkfunc.c \ |
Yann Gautier | d0ca7f4 | 2018-07-13 21:33:09 +0200 | [diff] [blame] | 44 | drivers/st/gpio/stm32_gpio.c \ |
Yann Gautier | 9aea69e | 2018-07-24 17:13:36 +0200 | [diff] [blame] | 45 | drivers/st/reset/stm32mp1_reset.c \ |
Yann Gautier | 4193466 | 2018-07-20 11:36:05 +0200 | [diff] [blame] | 46 | plat/st/stm32mp1/stm32mp1_context.c \ |
Yann Gautier | 9aea69e | 2018-07-24 17:13:36 +0200 | [diff] [blame] | 47 | plat/st/stm32mp1/stm32mp1_dt.c \ |
Yann Gautier | 4b0c72a | 2018-07-16 10:54:09 +0200 | [diff] [blame] | 48 | plat/st/stm32mp1/stm32mp1_helper.S |
| 49 | |
| 50 | BL2_SOURCES += drivers/io/io_dummy.c \ |
| 51 | drivers/io/io_storage.c \ |
| 52 | plat/st/stm32mp1/bl2_io_storage.c \ |
| 53 | plat/st/stm32mp1/bl2_plat_setup.c |
| 54 | |
| 55 | BL2_SOURCES += common/desc_image_load.c \ |
| 56 | plat/st/stm32mp1/plat_bl2_mem_params_desc.c \ |
| 57 | plat/st/stm32mp1/plat_image_load.c |
| 58 | |
| 59 | # For memory footprint optimization, build with thumb and interwork support |
| 60 | ASFLAGS += -mthumb -mthumb-interwork |
| 61 | TF_CFLAGS += -mthumb -mthumb-interwork |