rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | MODULE := ${LOCAL_DIR} |
| 3 | |
| 4 | GLOBAL_INCLUDES += \ |
| 5 | $(LOCAL_DIR)/include |
| 6 | |
| 7 | MODULE_SRCS += \ |
| 8 | $(LOCAL_DIR)/target.c \ |
| 9 | |
| 10 | PLATFORM := mt2701 |
| 11 | |
| 12 | TZ_PART_NAME := TEE1 |
| 13 | RECOVERY_TZ_PART_NAME = TEE2 |
| 14 | DTBO_PART_NAME := DTBO |
| 15 | BOOT_PART_NAME := UBOOT1 |
| 16 | RECOVERY_BOOT_PART_NAME = UBOOT2 |
| 17 | |
| 18 | CACHED_MEMPOOL_ADDR := 0x85000000 |
| 19 | CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB |
| 20 | |
| 21 | SCRATCH_SIZE := 0x08000000 # 128MB |
| 22 | MAX_TEE_DRAM_SIZE := 0x10000000 # 256M |
| 23 | |
| 24 | BL33_ADDR := 0x81e00000 |
| 25 | |
| 26 | OPTION_CLEAR_FASTBOOT_FLAG := 1 |
| 27 | OPTION_CLEAR_RECOVERY_FLAG := 1 |
| 28 | |
| 29 | # NAND page address of PMBR for those NAND projects that PMBR is not at LBA0 |
| 30 | NAND_PAGE_ADDR_OF_PMBR := 512 |
| 31 | |
| 32 | GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \ |
| 33 | -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \ |
| 34 | -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \ |
| 35 | -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \ |
| 36 | -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \ |
| 37 | |
| 38 | GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \ |
| 39 | CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \ |
| 40 | OPTION_CLEAR_FASTBOOT_FLAG=$(OPTION_CLEAR_FASTBOOT_FLAG) \ |
| 41 | OPTION_CLEAR_RECOVERY_FLAG=$(OPTION_CLEAR_RECOVERY_FLAG) \ |
| 42 | BL33_ADDR=$(BL33_ADDR) \ |
| 43 | CUSTOM_DEFAULT_STACK_SIZE=10240 \ |
| 44 | NAND_PAGE_ADDR_OF_PMBR=$(NAND_PAGE_ADDR_OF_PMBR) |
| 45 | |
| 46 | MODULE_DEPS += \ |
| 47 | platform/$(PLATFORM)/drivers/nand \ |
| 48 | platform/$(PLATFORM)/drivers/efuse \ |
| 49 | |
| 50 | include make/module.mk |
| 51 | |