rules.mk 689 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (c) 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_${MTK_SOC}
  8. ifeq (${CONFIG_MTK_APUSYS_EMI_SUPPORT}, y)
  9. PLAT_INCLUDES += -I${MTK_PLAT}/drivers/emi/common
  10. PLAT_INCLUDES += -I${MTK_PLAT}/drivers/emi/${MTK_SOC}
  11. endif
  12. LOCAL_SRCS-y := ${LOCAL_DIR}/apusys_ammu.c
  13. LOCAL_SRCS-y += ${LOCAL_DIR}/apusys_devapc.c
  14. LOCAL_SRCS-y += ${LOCAL_DIR}/apusys_power.c
  15. LOCAL_SRCS-y += ${LOCAL_DIR}/apusys_rv_pwr_ctrl.c
  16. LOCAL_SRCS-y += ${LOCAL_DIR}/apusys_security_ctrl_plat.c
  17. LOCAL_SRCS-y += ${LOCAL_DIR}/apusys_security_ctrl_perm_plat.c
  18. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))