errata.mk 633 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright 2021-2022 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. ERRATA := \
  10. ERRATA_SOC_A050426 \
  11. ERRATA_SOC_A008850 \
  12. ERRATA_SOC_A009660 \
  13. ERRATA_SOC_A010539
  14. define enable_errata
  15. $(1) ?= 0
  16. ifeq ($$($(1)),1)
  17. $$(eval $$(call add_define,$(1)))
  18. BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata_a$(shell echo $(1)|awk -F '_A' '{print $$NF}').c
  19. endif
  20. endef
  21. $(foreach e,$(ERRATA),$(eval $(call enable_errata,$(strip $(e)))))
  22. BL2_SOURCES += $(PLAT_COMMON_PATH)/soc_errata/errata.c