blob: 9ba44a6bf367571d20337802270529b9305a7974 [file] [log] [blame]
Hui Liu39ea6142022-07-28 20:28:32 +08001#
2# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7LOCAL_DIR := $(call GET_LOCAL_DIR)
8
9MODULE := pmic_wrap
10
11ifeq (${USE_PMIC_WRAP_INIT_V2}, 1)
12LOCAL_SRCS-y += ${LOCAL_DIR}/pmic_wrap_init_v2.c
13else
14LOCAL_SRCS-y += ${LOCAL_DIR}/pmic_wrap_init.c
15endif
16
17PLAT_INCLUDES += -I${LOCAL_DIR}/
18PLAT_INCLUDES += -I${LOCAL_DIR}/${MTK_SOC}
19
20$(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))