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