Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright 2021 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 | ERRATA := \ |
| 11 | ERRATA_SOC_A050426 |
| 12 | |
| 13 | define add_errata_define |
| 14 | $(1) ?= 0 |
| 15 | ifeq ($$($(1)),1) |
| 16 | $$(eval $$(call add_define,$(1))) |
| 17 | endif |
| 18 | endef |
| 19 | |
| 20 | $(foreach e,$(ERRATA),$(eval $(call add_errata_define,$(e)))) |
| 21 | |
| 22 | BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata.c |