conditional_eval_options.mk 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Conditional makefile variable assignment
  7. # Options depend on BUILD_TYPE variable
  8. ifeq ($(BUILD_TYPE),release)
  9. MTK_DEBUGSYS_LOCK := 1
  10. MTK_GET_PERM_DIS := 1
  11. ERRATA_KLEIN_2218950 := 0
  12. ERRATA_KLEIN_2184257 := 0
  13. ERRATA_KLEIN_BOOKER := 0
  14. ERRATA_MTH_BOOKER := 0
  15. ERRATA_MTHELP_BOOKER := 0
  16. CRASH_REPORTING := 1
  17. CONFIG_MTK_BL31_RAMDUMP := 0
  18. endif
  19. ifeq ($(BUILD_TYPE),debug)
  20. MTK_PTP3_PROC_DEBUG := 1
  21. MTK_SRAMRC_DEBUG := 1
  22. MTK_IOMMU_DEBUG := 1
  23. MTK_DCM_DEBUG := 1
  24. MTK_EMI_MPU_DEBUG := 1
  25. endif
  26. ifeq (${SPD},none)
  27. SPD_NONE:=1
  28. $(eval $(call add_define,SPD_NONE))
  29. endif
  30. # TEE OS config
  31. ifeq ($(SPD), tbase)
  32. CONFIG_TBASE := y
  33. endif
  34. # MICROTRUST OS config
  35. ifeq ($(SPD), teeid)
  36. CONFIG_MICROTRUST_TEEI := y
  37. endif
  38. ifeq (${CONFIG_ARCH_ARM_V8_2},y)
  39. ARCH_VERSION := armv8_2
  40. endif
  41. ifeq (${CONFIG_ARCH_ARM_V9},y)
  42. ARCH_VERSION := armv9
  43. endif