Pankaj Gupta | 7701910 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2020 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Platform Errata Build flags. |
| 7 | # These should be enabled by the platform if the erratum workaround needs to be |
| 8 | # applied. |
| 9 | |
| 10 | # Flag to apply erratum 50426 workaround during reset. |
| 11 | ERRATA_SOC_A050426 ?= 0 |
| 12 | |
| 13 | # Process ERRATA_SOC_A050426 flag |
| 14 | ifeq (${ERRATA_SOC_A050426}, 1) |
| 15 | INCL_SOC_ERRATA_SOURCES := yes |
| 16 | $(eval $(call add_define,ERRATA_SOC_A050426)) |
| 17 | endif |
| 18 | |
| 19 | ifeq (${INCL_SOC_ERRATA_SOURCES},yes) |
| 20 | BL2_SOURCES += ${PLAT_SOC_PATH}/erratas_soc.c |
| 21 | endif |