blob: cd9c8427e096f929da4a671b597cd19af185f9ad [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 lib
6
7
8SCRATCH_SIZE ?= 0x04000000 # 64MB
9MAX_TEE_DRAM_SIZE ?= 0x04000000 # 64MB
10MAX_KERNEL_SIZE ?= 0x02000000 # 32MB
11MAX_DTB_SIZE ?= 0x00200000 # 2MB
12MAX_DTBO_SIZE ?= 0x00200000 # 2MB
13MAX_BL33_SIZE ?= 0x00100000 # 1MB
14MAX_LZ4_BUF_SIZE ?= 0x00100000 # 1MB
15
16GLOBAL_DEFINES += SCRATCH_SIZE=$(SCRATCH_SIZE) \
17 MAX_TEE_DRAM_SIZE=$(MAX_TEE_DRAM_SIZE) \
18 MAX_KERNEL_SIZE=$(MAX_KERNEL_SIZE) \
19 MAX_DTB_SIZE=$(MAX_DTB_SIZE) \
20 MAX_DTBO_SIZE=$(MAX_DTBO_SIZE) \
21 MAX_BL33_SIZE=$(MAX_BL33_SIZE) \
22 MAX_LZ4_BUF_SIZE=$(MAX_LZ4_BUF_SIZE)
23
24ifeq ($(strip $(AVB_ENABLE_ANTIROLLBACK)),yes)
25GLOBAL_COMPILEFLAGS += -DAVB_ENABLE_ANTIROLLBACK
26endif
27
28ifeq ($(strip $(AB_OTA_UPDATER)),yes)
29GLOBAL_COMPILEFLAGS += -DAB_OTA_UPDATER
30endif
31
32MODULE_DEPS += \
33 lib/bio \
34 lib/mempool \
35 lib/fdt \
36 lib/fit \
37 lib/fastboot \
38 lib/libavb \
39 lib/libavb_ab \
40
41MODULE_SRCS += \
42 $(LOCAL_DIR)/avbboot.c \
43 $(LOCAL_DIR)/avb.c \
44
45GLOBAL_COMPILEFLAGS += -Os
46
47include make/module.mk