blob: 197fcdbfb762a66c5b318a1fb1b01cca57d40c4b [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 := mt2701
11
12TZ_PART_NAME := TEE1
13RECOVERY_TZ_PART_NAME = TEE1
14DTBO_PART_NAME := DTBO
15BOOT_PART_NAME := BOOTIMG
16RECOVERY_BOOT_PART_NAME = RECOVERY
17
18CACHED_MEMPOOL_ADDR := 0x85000000
19CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB
20
21SCRATCH_SIZE := 0x08000000 # 128MB
22MAX_TEE_DRAM_SIZE := 0x10000000 # 256M
23
24BL33_ADDR := 0x81e00000
25
26OPTION_CLEAR_FASTBOOT_FLAG := 1
27OPTION_CLEAR_RECOVERY_FLAG := 1
28
29GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
30 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
31 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
32 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
33 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
34
35GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \
36 CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \
37 OPTION_CLEAR_FASTBOOT_FLAG=$(OPTION_CLEAR_FASTBOOT_FLAG) \
38 OPTION_CLEAR_RECOVERY_FLAG=$(OPTION_CLEAR_RECOVERY_FLAG) \
39 BL33_ADDR=$(BL33_ADDR)
40
41MODULE_DEPS += \
42 platform/$(PLATFORM)/drivers/mmc \
43 platform/$(PLATFORM)/drivers/efuse \
44
45include make/module.mk
46