rules.mk 417 B

1234567891011121314151617181920
  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 := rtc
  8. LOCAL_SRCS-y := ${LOCAL_DIR}/rtc_common.c
  9. ifeq (${USE_RTC_MT6359P}, 1)
  10. LOCAL_SRCS-y += ${LOCAL_DIR}/rtc_mt6359p.c
  11. PLAT_INCLUDES += -I${LOCAL_DIR}
  12. endif
  13. PLAT_INCLUDES += -I${LOCAL_DIR}/${MTK_SOC}
  14. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))