rules.mk 501 B

1234567891011121314151617181920
  1. #
  2. # Copyright (c) 2023, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. LOCAL_DIR := $(call GET_LOCAL_DIR)
  7. MODULE := spm
  8. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))
  9. ifneq ($(CONFIG_MTK_SPM_VERSION),)
  10. PLAT_INCLUDES += -I${LOCAL_DIR}/$(MTK_SOC)
  11. PLAT_INCLUDES += -I${LOCAL_DIR}/version/notifier/inc
  12. SUB_RULES-y += ${LOCAL_DIR}/$(CONFIG_MTK_SPM_VERSION)
  13. $(eval $(call add_define,SPM_PLAT_IMPL))
  14. endif
  15. $(eval $(call INCLUDE_MAKEFILE,$(SUB_RULES-y)))