caam.mk 506 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright 2020-2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. ifeq (${ADD_CAAM},)
  8. ADD_CAAM := 1
  9. CAAM_DRIVER_SOURCES += $(wildcard $(PLAT_DRIVERS_PATH)/crypto/caam/src/*.c)
  10. PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/crypto/caam
  11. ifeq (${BL_COMM_CRYPTO_NEEDED},yes)
  12. BL_COMMON_SOURCES += ${CAAM_DRIVER_SOURCES}
  13. else
  14. ifeq (${BL2_CRYPTO_NEEDED},yes)
  15. BL2_SOURCES += ${CAAM_DRIVER_SOURCES}
  16. endif
  17. ifeq (${BL31_CRYPTO_NEEDED},yes)
  18. BL31_SOURCES += ${CAAM_DRIVER_SOURCES}
  19. endif
  20. endif
  21. endif