rules.mk 504 B

12345678910111213141516171819
  1. #
  2. # Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. LOCAL_DIR := $(call GET_LOCAL_DIR)
  7. MODULE := cpcv${CONFIG_MTK_CPU_PM_ARCH}
  8. LOCAL_SRCS-y := ${LOCAL_DIR}/mt_cpu_pm.c ${LOCAL_DIR}/mt_cpu_pm_cpc.c
  9. LOCAL_SRCS-$(CPU_PM_TINYSYS_SUPPORT) += ${LOCAL_DIR}/mt_cpu_pm_mbox.c
  10. LOCAL_SRCS-$(CONFIG_MTK_SMP_EN) += ${LOCAL_DIR}/mt_smp.c
  11. $(eval $(call add_defined_option,CPU_PM_TINYSYS_SUPPORT))
  12. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))