From fa91e98985a413e75d0e7ce5badd496835662fb9 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 9 Feb 2022 11:19:16 -0800 Subject: [PATCH] Add an misc_info.txt entry to customize VABC compression Products can define PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD to specify the compression algorithm they prefer, or "none" for no compression at all. Test: th Change-Id: I4fa27bd2c87b8f46c51023168d079e9b47ce2924 --- core/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Makefile b/core/Makefile index b9103abeae..9314b94192 100644 --- a/core/Makefile +++ b/core/Makefile @@ -5170,6 +5170,11 @@ define dump-dynamic-partitions-info echo "virtual_ab=true" >> $(1)) $(if $(filter true,$(PRODUCT_VIRTUAL_AB_COMPRESSION)), \ echo "virtual_ab_compression=true" >> $(1)) +# This value controls the compression algorithm used for VABC +# valid options are defined in system/core/fs_mgr/libsnapshot/cow_writer.cpp +# e.g. "none", "gz", "brotli" + $(if $(PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD), \ + echo "virtual_ab_compression_method=$(PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD)" >> $(1)) $(if $(filter true,$(PRODUCT_VIRTUAL_AB_OTA_RETROFIT)), \ echo "virtual_ab_retrofit=true" >> $(1)) endef