blob: bdc30991caecd673b59ae6c7bd31a2b45e238452 [file] [log] [blame]
LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
MODULE_BUILDDIR := $(call TOBUILDDIR,$(MODULE))
MODULE_INCLUDES += $(MODULE_BUILDDIR)/../../../include
GLOBAL_INCLUDES += $(LOCAL_DIR)/../../platform/$(PLATFORM)/$(MTK_PLATFORM)/include/platform
SCRATCH_SIZE ?= 0x04000000 # 64MB
MAX_TEE_DRAM_SIZE ?= 0x04000000 # 64MB
MAX_KERNEL_SIZE ?= 0x02000000 # 32MB
MAX_DTB_SIZE ?= 0x00200000 # 2MB
MAX_DTBO_SIZE ?= 0x00200000 # 2MB
MAX_BL33_SIZE ?= 0x00100000 # 1MB
MAX_LZ4_BUF_SIZE ?= 0x00100000 # 1MB
GLOBAL_DEFINES += SCRATCH_SIZE=$(SCRATCH_SIZE) \
MAX_TEE_DRAM_SIZE=$(MAX_TEE_DRAM_SIZE) \
MAX_KERNEL_SIZE=$(MAX_KERNEL_SIZE) \
MAX_DTB_SIZE=$(MAX_DTB_SIZE) \
MAX_DTBO_SIZE=$(MAX_DTBO_SIZE) \
MAX_BL33_SIZE=$(MAX_BL33_SIZE) \
MAX_LZ4_BUF_SIZE=$(MAX_LZ4_BUF_SIZE)
MODULE_DEPS += \
lib/bio \
lib/mempool \
lib/fdt \
lib/fit \
lib/fastboot \
MODULE_SRCS += \
$(LOCAL_DIR)/fitboot.c \
include make/module.mk