From e53c6e7200a458a8c529b5212bb82f99f89642fa Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 19 Apr 2017 15:54:22 -0700 Subject: [PATCH] Add the missing dependency on payload generation script. For A/B OTAs, ota_from_target_files.py calls brillo_update_payload script to generate the payload entry in an A/B OTA package. Bug: 37443093 Test: lunch aosp_marlin-userdebug && rm out/host/linux-x86/bin/brillo_update_payload && m otapackage Change-Id: I3845786b6c934c709f32e12a63cd6ea1f303d380 --- core/Makefile | 4 ++++ core/config.mk | 1 + 2 files changed, 5 insertions(+) diff --git a/core/Makefile b/core/Makefile index 0a9937665b..d871a9c651 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2252,6 +2252,10 @@ INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip $(INTERNAL_OTA_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR) +ifeq ($(AB_OTA_UPDATER),true) +$(INTERNAL_OTA_PACKAGE_TARGET): $(BRILLO_UPDATE_PAYLOAD) +endif + $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) \ build/tools/releasetools/ota_from_target_files @echo "Package OTA: $@" diff --git a/core/config.mk b/core/config.mk index 884be1e4f9..583909d577 100644 --- a/core/config.mk +++ b/core/config.mk @@ -634,6 +634,7 @@ BOOT_SIGNER := $(HOST_OUT_EXECUTABLES)/boot_signer FUTILITY := $(HOST_OUT_EXECUTABLES)/futility-host VBOOT_SIGNER := prebuilts/misc/scripts/vboot_signer/vboot_signer.sh FEC := $(HOST_OUT_EXECUTABLES)/fec +BRILLO_UPDATE_PAYLOAD := $(HOST_OUT_EXECUTABLES)/brillo_update_payload DEXDUMP := $(HOST_OUT_EXECUTABLES)/dexdump2$(BUILD_EXECUTABLE_SUFFIX) PROFMAN := $(HOST_OUT_EXECUTABLES)/profman