Edward-JW Yang | 4cc1ff7 | 2022-09-16 11:30:43 +0800 | [diff] [blame] | 1 | # |
Kai Liang | 95e974f | 2024-12-27 19:38:01 +0800 | [diff] [blame] | 2 | # Copyright (c) 2025, MediaTek Inc. All rights reserved. |
Edward-JW Yang | 4cc1ff7 | 2022-09-16 11:30:43 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | LOCAL_DIR := $(call GET_LOCAL_DIR) |
| 8 | |
| 9 | MODULE := mcusys |
| 10 | |
Kai Liang | 95e974f | 2024-12-27 19:38:01 +0800 | [diff] [blame] | 11 | ifeq ($(MTK_SOC), mt8196) |
| 12 | PLAT_INCLUDES += -I${MTK_PLAT}/include/drivers/mcusys/$(MCUSYS_VERSION) |
| 13 | ifneq ($(MCUPM_VERSION),) |
| 14 | PLAT_INCLUDES += -I${MTK_PLAT}/include/drivers/mcusys/mcupm |
| 15 | CFLAGS += -DMCUPM_VERSION_${MCUPM_VERSION} |
| 16 | endif |
| 17 | else |
Edward-JW Yang | 4cc1ff7 | 2022-09-16 11:30:43 +0800 | [diff] [blame] | 18 | PLAT_INCLUDES += -I$(LOCAL_DIR)/$(MCUSYS_VERSION) |
Kai Liang | 95e974f | 2024-12-27 19:38:01 +0800 | [diff] [blame] | 19 | endif |
Edward-JW Yang | 4cc1ff7 | 2022-09-16 11:30:43 +0800 | [diff] [blame] | 20 | |
| 21 | LOCAL_SRCS-y := $(LOCAL_DIR)/mcusys.c |
| 22 | |
| 23 | $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL))) |