blob: 7b35a234d819442fd5d4eac96ee626e06cafab6b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2MODULE := ${LOCAL_DIR}
3
4GLOBAL_INCLUDES += \
5 $(LOCAL_DIR)/include
6
7MODULE_SRCS += \
8 $(LOCAL_DIR)/target.c
9
10SRC_CLOCK := 10000000
11
12PLATFORM := mediatek
13MTK_PLATFORM := mt8133
14DRAM_TYPE := LPDDR4
15
16TZ_PART_NAME := tee_a
17RECOVERY_TZ_PART_NAME = tee_a
18DTBO_PART_NAME := dtbo
19BOOT_PART_NAME := boot
20RECOVERY_BOOT_PART_NAME = recovery
21BL33_PART_NAME := bl33
22RECOVERY_BL33_PART_NAME := bl33
23USB_PHY := fpga
24
25GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
26 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
27 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
28 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
29 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
30 -DSPM_PART_NAME=\"$(SPM_PART_NAME)\" \
31 -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \
32 -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \
33 -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\" \
34 -DDRAM_TYPE=\"$(DRAM_TYPE)\" \
35 -DSRC_CLOCK=$(SRC_CLOCK) \
36 -DMACH_FPGA=1
37
38MODULE_DEPS += \
39 platform/${PLATFORM}/${MTK_PLATFORM}/drivers/mmc
40
41include make/module.mk