Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 1 | # |
Jiafei Pan | 5cd4c12 | 2022-02-18 18:30:05 +0800 | [diff] [blame] | 2 | # Copyright 2021-2022 NXP |
Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 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 := \ |
Jiafei Pan | 0b960e1 | 2021-10-21 16:57:58 +0800 | [diff] [blame] | 11 | ERRATA_SOC_A050426 \ |
Jiafei Pan | 5cd4c12 | 2022-02-18 18:30:05 +0800 | [diff] [blame] | 12 | ERRATA_SOC_A008850 \ |
Jiafei Pan | 86a96d9 | 2022-02-18 18:32:18 +0800 | [diff] [blame] | 13 | ERRATA_SOC_A009660 \ |
| 14 | ERRATA_SOC_A010539 |
Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 15 | |
Jiafei Pan | 41fe2d7 | 2021-08-24 12:01:27 +0800 | [diff] [blame] | 16 | define enable_errata |
Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 17 | $(1) ?= 0 |
| 18 | ifeq ($$($(1)),1) |
| 19 | $$(eval $$(call add_define,$(1))) |
Jiafei Pan | 41fe2d7 | 2021-08-24 12:01:27 +0800 | [diff] [blame] | 20 | BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata_a$(shell echo $(1)|awk -F '_A' '{print $$NF}').c |
Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 21 | endif |
| 22 | endef |
| 23 | |
Jiafei Pan | 41fe2d7 | 2021-08-24 12:01:27 +0800 | [diff] [blame] | 24 | $(foreach e,$(ERRATA),$(eval $(call enable_errata,$(strip $(e))))) |
Jiafei Pan | f7b09ab | 2021-07-20 14:54:01 +0800 | [diff] [blame] | 25 | |
| 26 | BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata.c |