From 8925d334c3d9932526242ad78ec7a0c23627c3a8 Mon Sep 17 00:00:00 2001 From: Alex Deymo Date: Thu, 1 Oct 2015 17:38:09 -0700 Subject: [PATCH] Pack META/ab_partitions.txt when using the A/B OTA updater. The list of A/B partitions updated is product-specific. Normally you would update boot and system, but the product could require to update other partitions during a system update. This patch packages the list of A/B partitions configured to be updated when using the A/B updater. The list can be set in the product makefile by setting the make variable UPDATE_AB_PARTITIONS. Bug: 24387863 Test: `make dist` creates the META/ab_partitions.txt in the target_files.zip Change-Id: I4226ab05c7c7cd74721b06f1da64c6cf4d0e52ac --- core/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/Makefile b/core/Makefile index e86831bc5..7f7aca4c1 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1568,6 +1568,9 @@ endif ifeq ($(AB_OTA_UPDATER),true) @# When using the A/B updater, include the updater config files in the zip. $(hide) $(ACP) $(TOPDIR)system/update_engine/update_engine.conf $(zip_root)/META/update_engine_config.txt + $(hide) for part in $(UPDATE_AB_PARTITIONS); do \ + echo "$${part}" >> $(zip_root)/META/ab_partitions.txt; \ + done endif ifeq ($(BREAKPAD_GENERATE_SYMBOLS),true) @# If breakpad symbols have been generated, add them to the zip. -- 2.11.0