rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | MODULE := $(LOCAL_DIR) |
| 4 | MODULE_BUILDDIR := $(call TOBUILDDIR,$(MODULE)) |
| 5 | MODULE_INCLUDES += $(MODULE_BUILDDIR)/../../../include |
| 6 | GLOBAL_INCLUDES += $(LOCAL_DIR)/../../platform/$(PLATFORM)/$(MTK_PLATFORM)/include/platform |
| 7 | |
| 8 | |
| 9 | |
| 10 | SCRATCH_SIZE ?= 0x04000000 # 64MB |
| 11 | MAX_TEE_DRAM_SIZE ?= 0x04000000 # 64MB |
| 12 | MAX_KERNEL_SIZE ?= 0x02000000 # 32MB |
| 13 | MAX_DTB_SIZE ?= 0x00200000 # 2MB |
| 14 | MAX_DTBO_SIZE ?= 0x00200000 # 2MB |
| 15 | MAX_BL33_SIZE ?= 0x00100000 # 1MB |
| 16 | MAX_LZ4_BUF_SIZE ?= 0x00100000 # 1MB |
| 17 | |
| 18 | GLOBAL_DEFINES += SCRATCH_SIZE=$(SCRATCH_SIZE) \ |
| 19 | MAX_TEE_DRAM_SIZE=$(MAX_TEE_DRAM_SIZE) \ |
| 20 | MAX_KERNEL_SIZE=$(MAX_KERNEL_SIZE) \ |
| 21 | MAX_DTB_SIZE=$(MAX_DTB_SIZE) \ |
| 22 | MAX_DTBO_SIZE=$(MAX_DTBO_SIZE) \ |
| 23 | MAX_BL33_SIZE=$(MAX_BL33_SIZE) \ |
| 24 | MAX_LZ4_BUF_SIZE=$(MAX_LZ4_BUF_SIZE) |
| 25 | |
| 26 | MODULE_DEPS += \ |
| 27 | lib/bio \ |
| 28 | lib/mempool \ |
| 29 | lib/fdt \ |
| 30 | lib/fit \ |
| 31 | lib/fastboot \ |
| 32 | |
| 33 | MODULE_SRCS += \ |
| 34 | $(LOCAL_DIR)/fitboot.c \ |
| 35 | include make/module.mk |