rules.mk 1.0 KB

123456789101112131415161718192021222324252627282930
  1. #
  2. # Copyright (c) 2023-2024, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. LOCAL_DIR := $(call GET_LOCAL_DIR)
  7. MODULE := apusys
  8. LOCAL_SRCS-y:= ${LOCAL_DIR}/apusys.c
  9. PLAT_INCLUDES += -I${LOCAL_DIR} -I${LOCAL_DIR}/${MTK_SOC} -I${LOCAL_DIR}/apusys_rv/2.0
  10. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_CE_SUPPORT))
  11. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_EMI_SUPPORT))
  12. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_LOGTOP_SUPPORT))
  13. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_RV_APUMMU_SUPPORT))
  14. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_RV_COREDUMP_WA_SUPPORT))
  15. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT))
  16. $(eval $(call add_defined_option,CONFIG_MTK_APUSYS_SEC_CTRL))
  17. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))
  18. SUB_RULES-y := ${LOCAL_DIR}/${MTK_SOC}
  19. SUB_RULES-y += ${LOCAL_DIR}/devapc
  20. SUB_RULES-y += ${LOCAL_DIR}/apusys_rv/2.0
  21. SUB_RULES-${CONFIG_MTK_APUSYS_SEC_CTRL} += $(LOCAL_DIR)/security_ctrl
  22. $(eval $(call INCLUDE_MAKEFILE,$(SUB_RULES-y)))