Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 1 | # |
Louis Mayencourt | 5a15b2d | 2019-10-17 14:46:51 +0100 | [diff] [blame] | 2 | # Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Louis Mayencourt | 5a15b2d | 2019-10-17 14:46:51 +0100 | [diff] [blame] | 7 | # Firmware Configuration Framework sources |
| 8 | include lib/fconf/fconf.mk |
| 9 | |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 10 | # Add `libfdt` and Arm common helpers required for Dynamic Config |
| 11 | include lib/libfdt/libfdt.mk |
| 12 | |
| 13 | DYN_CFG_SOURCES += plat/arm/common/arm_dyn_cfg.c \ |
| 14 | plat/arm/common/arm_dyn_cfg_helpers.c \ |
| 15 | common/fdt_wrappers.c |
| 16 | |
| 17 | A5DS_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 18 | drivers/arm/gic/v2/gicv2_main.c \ |
| 19 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 20 | plat/common/plat_gicv2.c \ |
| 21 | plat/arm/common/arm_gicv2.c |
| 22 | |
| 23 | A5DS_SECURITY_SOURCES := plat/arm/board/a5ds/a5ds_security.c |
| 24 | |
| 25 | PLAT_INCLUDES := -Iplat/arm/board/a5ds/include |
| 26 | |
| 27 | PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/${ARCH}/pl011_console.S \ |
| 28 | plat/arm/board/a5ds/a5ds_common.c \ |
| 29 | plat/arm/common/${ARCH}/arm_helpers.S \ |
| 30 | plat/arm/common/arm_common.c \ |
| 31 | plat/arm/common/arm_console.c \ |
| 32 | plat/arm/board/common/${ARCH}/board_arm_helpers.S |
| 33 | |
| 34 | A5DS_CPU_LIBS := lib/cpus/aarch32/cortex_a5.S |
| 35 | |
| 36 | BL1_SOURCES += drivers/io/io_fip.c \ |
| 37 | drivers/io/io_memmap.c \ |
| 38 | drivers/io/io_storage.c \ |
| 39 | drivers/cfi/v2m/v2m_flash.c \ |
| 40 | plat/arm/common/arm_bl1_setup.c \ |
| 41 | plat/arm/common/arm_err.c \ |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 42 | plat/arm/board/a5ds/a5ds_err.c \ |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 43 | plat/arm/common/arm_io_storage.c \ |
Louis Mayencourt | 6b232d9 | 2020-02-28 16:57:30 +0000 | [diff] [blame] | 44 | plat/arm/common/fconf/arm_fconf_io.c \ |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 45 | plat/arm/board/a5ds/${ARCH}/a5ds_helpers.S \ |
| 46 | plat/arm/board/a5ds/a5ds_bl1_setup.c \ |
| 47 | lib/aarch32/arm32_aeabi_divmod.c \ |
| 48 | lib/aarch32/arm32_aeabi_divmod_a32.S \ |
| 49 | ${A5DS_CPU_LIBS} \ |
| 50 | ${DYN_CFG_SOURCES} |
| 51 | |
| 52 | BL2_SOURCES += lib/aarch32/arm32_aeabi_divmod.c \ |
| 53 | lib/aarch32/arm32_aeabi_divmod_a32.S \ |
| 54 | drivers/delay_timer/delay_timer.c \ |
| 55 | drivers/delay_timer/generic_delay_timer.c \ |
| 56 | drivers/cfi/v2m/v2m_flash.c \ |
| 57 | drivers/io/io_fip.c \ |
| 58 | drivers/io/io_memmap.c \ |
| 59 | drivers/io/io_storage.c \ |
| 60 | plat/arm/board/a5ds/a5ds_bl2_setup.c \ |
| 61 | plat/arm/common/arm_bl2_setup.c \ |
| 62 | plat/arm/common/arm_err.c \ |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 63 | plat/arm/board/a5ds/a5ds_err.c \ |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 64 | plat/arm/common/arm_io_storage.c \ |
Louis Mayencourt | 6b232d9 | 2020-02-28 16:57:30 +0000 | [diff] [blame] | 65 | plat/arm/common/fconf/arm_fconf_io.c \ |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 66 | plat/arm/common/${ARCH}/arm_bl2_mem_params_desc.c \ |
| 67 | plat/arm/common/arm_image_load.c \ |
| 68 | common/desc_image_load.c \ |
| 69 | ${DYN_CFG_SOURCES} \ |
| 70 | ${A5DS_SECURITY_SOURCES} |
| 71 | |
| 72 | # Add the FDT_SOURCES and options for Dynamic Config (only for Unix env) |
| 73 | ifdef UNIX_MK |
| 74 | |
Louis Mayencourt | 6d2b573 | 2019-12-17 13:17:25 +0000 | [diff] [blame] | 75 | FVP_TB_FW_CONFIG := ${BUILD_PLAT}/fdts/a5ds_fw_config.dtb |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 76 | |
| 77 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 78 | $(eval $(call TOOL_ADD_PAYLOAD,${FVP_TB_FW_CONFIG},--tb-fw-config)) |
| 79 | |
| 80 | $(eval FVP_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb, \ |
| 81 | fdts/$(notdir ${FVP_HW_CONFIG_DTS}))) |
| 82 | # Add the HW_CONFIG to FIP and specify the same to certtool |
| 83 | $(eval $(call TOOL_ADD_PAYLOAD,${FVP_HW_CONFIG},--hw-config)) |
| 84 | |
Louis Mayencourt | 6d2b573 | 2019-12-17 13:17:25 +0000 | [diff] [blame] | 85 | FDT_SOURCES += plat/arm/board/a5ds/fdts/a5ds_fw_config.dts \ |
Usama Arif | 82e9509 | 2019-06-18 16:46:05 +0100 | [diff] [blame] | 86 | ${FVP_HW_CONFIG_DTS} |
| 87 | endif |
| 88 | |
| 89 | NEED_BL32 := yes |
| 90 | |
| 91 | MULTI_CONSOLE_API := 1 |
| 92 | |
| 93 | PLAT_BL_COMMON_SOURCES += lib/xlat_tables/aarch32/nonlpae_tables.c |
| 94 | |
| 95 | # Use translation tables library v1 when using Cortex-A5 |
| 96 | ARM_XLAT_TABLES_LIB_V1 := 1 |
| 97 | $(eval $(call assert_boolean,ARM_XLAT_TABLES_LIB_V1)) |
| 98 | $(eval $(call add_define,ARM_XLAT_TABLES_LIB_V1)) |
| 99 | |
| 100 | $(eval $(call assert_boolean,ARM_DISABLE_TRUSTED_WDOG)) |
| 101 | $(eval $(call add_define,ARM_DISABLE_TRUSTED_WDOG)) |