developer | 6514957 | 2022-09-07 18:26:57 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2023, MediaTek Inc. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | LOCAL_DIR := $(call GET_LOCAL_DIR) |
| 8 | MODULE := spm |
| 9 | |
| 10 | $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL))) |
| 11 | |
| 12 | ifneq ($(CONFIG_MTK_SPM_VERSION),) |
| 13 | PLAT_INCLUDES += -I${LOCAL_DIR}/$(MTK_SOC) |
| 14 | PLAT_INCLUDES += -I${LOCAL_DIR}/version/notifier/inc |
| 15 | |
| 16 | SUB_RULES-y += ${LOCAL_DIR}/$(CONFIG_MTK_SPM_VERSION) |
| 17 | $(eval $(call add_define,SPM_PLAT_IMPL)) |
| 18 | endif |
| 19 | |
| 20 | $(eval $(call INCLUDE_MAKEFILE,$(SUB_RULES-y))) |