Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6af369e authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Export recovery partition related variables to Soong

Exported variables:
- TARGET_COPY_OUT_RECOVERY
- BUILDING_RECOVERY_IMAGE

This change also creates an installed file_list.txt file for the
recovery partition.

Test: m nothing
Bug: 381888358
Change-Id: I8743e5f7db25a7e514094613467a5ad66a2818f0
parent 3475af96
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2936,6 +2936,9 @@ ifneq ($(BOARD_NAND_SPARE_SIZE),)
$(error MTD device is no longer supported and thus BOARD_NAND_SPARE_SIZE is deprecated.)
endif

recovery_intermediates := $(call intermediates-dir-for,PACKAGING,recovery)
$(eval $(call write-partition-file-list,$(recovery_intermediates)/file_list.txt,$(TARGET_RECOVERY_OUT),$(INTERNAL_RECOVERYIMAGE_FILES)))


# -----------------------------------------------------------------
# Build debug ramdisk and debug boot image.
+2 −0
Original line number Diff line number Diff line
@@ -194,6 +194,8 @@ $(call add_json_str, SystemExtPath, $(TARGET_COPY_OUT_SYSTE
$(call add_json_str,  SystemDlkmPath,                    $(TARGET_COPY_OUT_SYSTEM_DLKM))
$(call add_json_str,  OemPath,                           $(TARGET_COPY_OUT_OEM))
$(call add_json_bool, MinimizeJavaDebugInfo,             $(filter true,$(PRODUCT_MINIMIZE_JAVA_DEBUG_INFO)))
$(call add_json_str,  RecoveryPath,                      $(TARGET_COPY_OUT_RECOVERY))
$(call add_json_bool, BuildingRecoveryImage,             $(BUILDING_RECOVERY_IMAGE))

$(call add_json_bool, UseGoma,                           $(filter-out false,$(USE_GOMA)))
$(call add_json_bool, UseRBE,                            $(filter-out false,$(USE_RBE)))