2021-07-20 07:54:01 +01:00
|
|
|
#
|
2022-02-18 10:30:05 +00:00
|
|
|
# Copyright 2021-2022 NXP
|
2021-07-20 07:54:01 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
# Platform Errata Build flags.
|
|
|
|
# These should be enabled by the platform if the erratum workaround needs to be
|
|
|
|
# applied.
|
|
|
|
|
|
|
|
ERRATA := \
|
2021-10-21 09:57:58 +01:00
|
|
|
ERRATA_SOC_A050426 \
|
2022-02-18 10:30:05 +00:00
|
|
|
ERRATA_SOC_A008850 \
|
2022-02-18 10:32:18 +00:00
|
|
|
ERRATA_SOC_A009660 \
|
|
|
|
ERRATA_SOC_A010539
|
2021-07-20 07:54:01 +01:00
|
|
|
|
2021-08-24 05:01:27 +01:00
|
|
|
define enable_errata
|
2021-07-20 07:54:01 +01:00
|
|
|
$(1) ?= 0
|
|
|
|
ifeq ($$($(1)),1)
|
|
|
|
$$(eval $$(call add_define,$(1)))
|
2021-08-24 05:01:27 +01:00
|
|
|
BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata_a$(shell echo $(1)|awk -F '_A' '{print $$NF}').c
|
2021-07-20 07:54:01 +01:00
|
|
|
endif
|
|
|
|
endef
|
|
|
|
|
2021-08-24 05:01:27 +01:00
|
|
|
$(foreach e,$(ERRATA),$(eval $(call enable_errata,$(strip $(e)))))
|
2021-07-20 07:54:01 +01:00
|
|
|
|
|
|
|
BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata.c
|