OSDN Git Service

DO NOT MERGE Pack the update_engine_config.txt when using the A/B OTA updater.
authorAlex Deymo <deymo@google.com>
Wed, 30 Sep 2015 02:05:37 +0000 (19:05 -0700)
committerTao Bao <tbao@google.com>
Thu, 19 Nov 2015 04:45:33 +0000 (20:45 -0800)
This config file pulled directly from the source specifies the update
payload version supported by the code. When generating an incremental
update payload for the A/B updater, the generated payload format will
match the version supported by the old version.

Bug: 24406755
Test: `make dist` on Brillo.

Change-Id: Ib7ac6828d0d34eb31e786dbaae5d59ecf26c3576
(cherry picked from commit 70067acd663df3fb0a747085f3d928c4b1777154)

core/Makefile

index 37c11b6..8e01480 100644 (file)
@@ -1554,6 +1554,10 @@ ifneq ($(INSTALLED_RECOVERYIMAGE_TARGET),)
        $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \
            ./build/tools/releasetools/make_recovery_patch $(zip_root) $(zip_root)
 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
+endif
        @# Zip everything up, preserving symlinks
        $(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .)
        @# Run fs_config on all the system, vendor, boot ramdisk,