Skip to content

Commit e3190bf

Browse files
zhangxp1998Gerrit Code Review
authored andcommitted
Merge "Revert "Move all targets away from non-AB"" into main
2 parents 8bbae75 + 2ddbfee commit e3190bf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6109,6 +6109,12 @@ ifeq ($(AB_OTA_UPDATER),true)
61096109
$(BUILT_TARGET_FILES_DIR): $(TARGET_OUT_OEM)/$(OSRELEASED_DIRECTORY)/product_version
61106110
$(BUILT_TARGET_FILES_DIR): $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY)/system_version
61116111
endif
6112+
6113+
# Not checking in board_config.mk, since AB_OTA_PARTITIONS may be updated in Android.mk (e.g. to
6114+
# additionally include radio or bootloader partitions).
6115+
ifeq ($(AB_OTA_PARTITIONS),)
6116+
$(error AB_OTA_PARTITIONS must be defined when using AB_OTA_UPDATER)
6117+
endif
61126118
endif
61136119

61146120
ifneq ($(AB_OTA_PARTITIONS),)

core/board_config.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,7 @@ endif
923923
###########################################
924924
# Ensure consistency among TARGET_RECOVERY_UPDATER_LIBS, AB_OTA_UPDATER, and PRODUCT_OTA_FORCE_NON_AB_PACKAGE.
925925
TARGET_RECOVERY_UPDATER_LIBS ?=
926-
ifeq ($(AB_OTA_UPDATER),)
927-
AB_OTA_UPDATER := true
928-
endif
926+
AB_OTA_UPDATER ?=
929927
.KATI_READONLY := TARGET_RECOVERY_UPDATER_LIBS AB_OTA_UPDATER
930928

931929
# Ensure that if PRODUCT_OTA_FORCE_NON_AB_PACKAGE == true, then AB_OTA_UPDATER must be true

0 commit comments

Comments
 (0)