From fbf53522cf0d27d4f3771e4e03b840f0d0da21b1 Mon Sep 17 00:00:00 2001 From: Aidan Wolter Date: Fri, 17 Mar 2023 20:17:35 +0000 Subject: [PATCH] [config] Boards can supply custom super image script Some boards may need to customize the format of the super image. We will now provide the variable BOARD_CUSTOM_BUILD_SUPER_IMAGE so that boards can provide their own script for constructing the super image. This mimics similar code in the same file for allowing boards to supply a custom VBMeta (BOARD_CUSTOM_AVBTOOL) or boot image (BOARD_CUSTOM_MKBOOTIMG). Bug: None Change-Id: I461caeb6dfb705fd5c671228fc35561ed403a1cb --- core/config.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/config.mk b/core/config.mk index 025a3a1de5..fe6b8f6f38 100644 --- a/core/config.mk +++ b/core/config.mk @@ -618,7 +618,11 @@ CHECK_ELF_FILE := $(HOST_OUT_EXECUTABLES)/check_elf_file$(HOST_EXECUTABLE_SUFFIX LPMAKE := $(HOST_OUT_EXECUTABLES)/lpmake$(HOST_EXECUTABLE_SUFFIX) ADD_IMG_TO_TARGET_FILES := $(HOST_OUT_EXECUTABLES)/add_img_to_target_files$(HOST_EXECUTABLE_SUFFIX) BUILD_IMAGE := $(HOST_OUT_EXECUTABLES)/build_image$(HOST_EXECUTABLE_SUFFIX) +ifeq (,$(strip $(BOARD_CUSTOM_BUILD_SUPER_IMAGE))) BUILD_SUPER_IMAGE := $(HOST_OUT_EXECUTABLES)/build_super_image$(HOST_EXECUTABLE_SUFFIX) +else +BUILD_SUPER_IMAGE := $(BOARD_CUSTOM_BUILD_SUPER_IMAGE) +endif IMG_FROM_TARGET_FILES := $(HOST_OUT_EXECUTABLES)/img_from_target_files$(HOST_EXECUTABLE_SUFFIX) MAKE_RECOVERY_PATCH := $(HOST_OUT_EXECUTABLES)/make_recovery_patch$(HOST_EXECUTABLE_SUFFIX) OTA_FROM_TARGET_FILES := $(HOST_OUT_EXECUTABLES)/ota_from_target_files$(HOST_EXECUTABLE_SUFFIX)