1# 2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7# Architecture 8$(eval $(call add_define,ARMV7_SUPPORTS_LARGE_PAGE_ADDRESSING)) 9 10# Tune compiler for Cortex-A7 11ifeq ($(notdir $(CC)),armclang) 12 TF_CFLAGS += -mfpu=neon 13 ASFLAGS += -mfpu=neon 14else ifneq ($(findstring clang,$(notdir $(CC))),) 15 TF_CFLAGS += -mfpu=neon 16 ASFLAGS += -mfpu=neon 17else 18 TF_CFLAGS += -mfpu=neon 19 ASFLAGS += -mfpu=neon 20endif 21 22# Platform 23PLAT_INCLUDES := -Idrivers/imx/uart \ 24 -Iinclude/common/tbbr \ 25 -Iinclude/plat/arm/common/ \ 26 -Iplat/imx/common/include/ \ 27 -Iplat/imx/imx7/warp7/include \ 28 -Idrivers/imx/timer \ 29 -Idrivers/imx/usdhc \ 30 -Iplat/imx/imx7/include 31 32# Translation tables library 33include lib/xlat_tables_v2/xlat_tables.mk 34 35BL2_SOURCES += common/desc_image_load.c \ 36 drivers/console/aarch32/console.S \ 37 drivers/delay_timer/delay_timer.c \ 38 drivers/mmc/mmc.c \ 39 drivers/io/io_block.c \ 40 drivers/io/io_fip.c \ 41 drivers/io/io_memmap.c \ 42 drivers/io/io_storage.c \ 43 drivers/imx/timer/imx_gpt.c \ 44 drivers/imx/uart/imx_uart.c \ 45 drivers/imx/uart/imx_crash_uart.S \ 46 drivers/imx/usdhc/imx_usdhc.c \ 47 lib/aarch32/arm32_aeabi_divmod.c \ 48 lib/aarch32/arm32_aeabi_divmod_a32.S \ 49 lib/cpus/aarch32/cortex_a7.S \ 50 lib/optee/optee_utils.c \ 51 plat/imx/common/imx_aips.c \ 52 plat/imx/common/imx_caam.c \ 53 plat/imx/common/imx_clock.c \ 54 plat/imx/common/imx_csu.c \ 55 plat/imx/common/imx_io_mux.c \ 56 plat/imx/common/imx_snvs.c \ 57 plat/imx/common/imx_wdog.c \ 58 plat/imx/common/imx7_clock.c \ 59 plat/imx/imx7/warp7/aarch32/warp7_helpers.S \ 60 plat/imx/imx7/warp7/warp7_bl2_el3_setup.c \ 61 plat/imx/imx7/warp7/warp7_bl2_mem_params_desc.c \ 62 plat/imx/imx7/warp7/warp7_io_storage.c \ 63 plat/imx/imx7/warp7/warp7_image_load.c \ 64 ${XLAT_TABLES_LIB_SRCS} 65 66# Build config flags 67# ------------------ 68 69WORKAROUND_CVE_2017_5715 := 0 70 71# Enable reset to BL31 by default 72RESET_TO_BL31 := 0 73 74# Non-TF Boot ROM 75BL2_AT_EL3 := 1 76 77# Indicate single-core 78COLD_BOOT_SINGLE_CPU := 1 79 80# Have different sections for code and rodata 81SEPARATE_CODE_AND_RODATA := 1 82 83# Use Coherent memory 84USE_COHERENT_MEM := 1 85 86# PLAT_WARP7_UART 87PLAT_WARP7_UART :=1 88$(eval $(call add_define,PLAT_WARP7_UART)) 89 90# Verify build config 91# ------------------- 92 93ifeq (${ARCH},aarch64) 94 $(error Error: AArch64 not supported on i.mx7) 95endif 96