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 := mediatek |
| 11 | MTK_PLATFORM := mt6771 |
| 12 | DRAM_TYPE := LPDDR4 |
| 13 | |
| 14 | TZ_PART_NAME := tee1 |
| 15 | RECOVERY_TZ_PART_NAME = tee1 |
| 16 | DTBO_PART_NAME := odmdtbo |
| 17 | BOOT_PART_NAME := boot |
| 18 | RECOVERY_BOOT_PART_NAME = boot |
| 19 | SPM_PART_NAME := spmfw |
| 20 | BL33_PART_NAME := UBOOT |
| 21 | RECOVERY_BL33_PART_NAME := UBOOT |
| 22 | ROOTFS_PART_NAME := ROOTFS |
| 23 | |
| 24 | CACHED_MEMPOOL_ADDR := 0x85000000 |
| 25 | # CACHED_MEMPOOL_SIZE := 0x1AE00000 # 430MB |
| 26 | CACHED_MEMPOOL_SIZE := 0x0AA00000 # 170MB |
| 27 | |
| 28 | SCRATCH_SIZE := 0x04000000 # 128MB |
| 29 | MAX_TEE_DRAM_SIZE := 0x01000000 # 256M |
| 30 | |
| 31 | BL33_ADDR := 0x41e00000 |
| 32 | |
| 33 | GLOBAL_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 | |
| 44 | MODULE_DEPS += \ |
| 45 | platform/$(PLATFORM)/$(MTK_PLATFORM)/drivers/mmc \ |
| 46 | |
| 47 | GLOBAL_DEFINES += CACHED_MEMPOOL_ADDR=$(CACHED_MEMPOOL_ADDR) \ |
| 48 | CACHED_MEMPOOL_SIZE=$(CACHED_MEMPOOL_SIZE) \ |
| 49 | BL33_ADDR=$(BL33_ADDR) |
| 50 | |
| 51 | include make/module.mk |