Jiafei Pan | 46367ad | 2018-03-02 07:23:30 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | |
| 8 | # Process LS1043_DISABLE_TRUSTED_WDOG flag |
| 9 | # TODO:Temparally disabled it on development phase, not implemented yet |
| 10 | LS1043_DISABLE_TRUSTED_WDOG := 1 |
| 11 | |
| 12 | # On Layerscape platforms, separate the code and read-only data sections to allow |
| 13 | # mapping the former as executable and the latter as execute-never. |
| 14 | SEPARATE_CODE_AND_RODATA := 1 |
| 15 | |
| 16 | # Enable new version of image loading on Layerscape platforms |
| 17 | LOAD_IMAGE_V2 := 1 |
| 18 | |
| 19 | # Use generic OID definition (tbbr_oid.h) |
| 20 | USE_TBBR_DEFS := 1 |
| 21 | |
| 22 | |
| 23 | COLD_BOOT_SINGLE_CPU := 1 |
| 24 | |
| 25 | PLAT_INCLUDES += -Iinclude/common/tbbr |
| 26 | |
| 27 | PLAT_BL_COMMON_SOURCES += plat/layerscape/common/${ARCH}/ls_helpers.S \ |
| 28 | plat/layerscape/common/ls_common.c |
| 29 | |
| 30 | include lib/xlat_tables_v2/xlat_tables.mk |
| 31 | |
| 32 | PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} |
| 33 | |
| 34 | BL1_SOURCES += \ |
| 35 | drivers/io/io_fip.c \ |
| 36 | drivers/io/io_memmap.c \ |
| 37 | drivers/io/io_storage.c \ |
| 38 | plat/layerscape/common/ls_timer.c \ |
| 39 | plat/layerscape/common/ls_bl1_setup.c \ |
| 40 | plat/layerscape/common/ls_io_storage.c |
| 41 | |
| 42 | BL2_SOURCES += drivers/io/io_fip.c \ |
| 43 | drivers/io/io_memmap.c \ |
| 44 | drivers/io/io_storage.c \ |
| 45 | plat/layerscape/common/ls_timer.c \ |
| 46 | plat/layerscape/common/ls_bl2_setup.c \ |
| 47 | plat/layerscape/common/ls_io_storage.c |
| 48 | BL2_SOURCES += plat/layerscape/common/${ARCH}/ls_bl2_mem_params_desc.c |
| 49 | BL2_SOURCES += plat/layerscape/common/ls_image_load.c \ |
| 50 | common/desc_image_load.c |
| 51 | |
| 52 | BL31_SOURCES += plat/layerscape/common/ls_bl31_setup.c \ |
| 53 | plat/layerscape/common/ls_timer.c \ |
| 54 | plat/layerscape/common/ls_topology.c \ |
| 55 | plat/layerscape/common/ns_access.c \ |
| 56 | plat/common/plat_psci_common.c |
| 57 | # Verify build config |
| 58 | # ------------------- |
| 59 | |
| 60 | ifneq (${LOAD_IMAGE_V2}, 1) |
| 61 | $(error Error: Layerscape needs LOAD_IMAGE_V2=1) |
| 62 | endif |