blob: bdc30991caecd673b59ae6c7bd31a2b45e238452 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4MODULE_BUILDDIR := $(call TOBUILDDIR,$(MODULE))
5MODULE_INCLUDES += $(MODULE_BUILDDIR)/../../../include
6GLOBAL_INCLUDES += $(LOCAL_DIR)/../../platform/$(PLATFORM)/$(MTK_PLATFORM)/include/platform
7
8
9
10SCRATCH_SIZE ?= 0x04000000 # 64MB
11MAX_TEE_DRAM_SIZE ?= 0x04000000 # 64MB
12MAX_KERNEL_SIZE ?= 0x02000000 # 32MB
13MAX_DTB_SIZE ?= 0x00200000 # 2MB
14MAX_DTBO_SIZE ?= 0x00200000 # 2MB
15MAX_BL33_SIZE ?= 0x00100000 # 1MB
16MAX_LZ4_BUF_SIZE ?= 0x00100000 # 1MB
17
18GLOBAL_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
26MODULE_DEPS += \
27 lib/bio \
28 lib/mempool \
29 lib/fdt \
30 lib/fit \
31 lib/fastboot \
32
33MODULE_SRCS += \
34 $(LOCAL_DIR)/fitboot.c \
35include make/module.mk