blob: a3155e8bc34b35475f91e3d9f7d671c3b6ed28fa [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
10PLATFORM := mediatek
11MTK_PLATFORM := mt6771
12DRAM_TYPE := LPDDR4
13
14TZ_PART_NAME := tee1
15RECOVERY_TZ_PART_NAME = tee1
16DTBO_PART_NAME := odmdtbo
17BOOT_PART_NAME := boot
18RECOVERY_BOOT_PART_NAME = boot
19SPM_PART_NAME := spmfw
20BL33_PART_NAME := UBOOT
21RECOVERY_BL33_PART_NAME := UBOOT
22ROOTFS_PART_NAME := ROOTFS
23
24CACHED_MEMPOOL_ADDR := 0x85000000
25# CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
26CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB
27
28SCRATCH_SIZE := 0x04000000 # 128MB
29MAX_TEE_DRAM_SIZE := 0x01000000 # 256M
30
31BL33_ADDR := 0x41e00000
32
33GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
34 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
35 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
36 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
37 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
38 -DSPM_PART_NAME=\"$(SPM_PART_NAME)\" \
39 -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \
40 -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \
41 -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\"
42 -DDRAM_TYPE=\"$(DRAM_TYPE)\"
43
44MODULE_DEPS += \
45 platform/$(PLATFORM)/$(MTK_PLATFORM)/drivers/mmc \
46
47GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
48 CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
49 BL33_ADDR=$(BL33_ADDR)
50
51include make/module.mk