aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Granata <egranata@google.com>2022-08-03 15:26:09 -0600
committerEnrico Granata <egranata@google.com>2022-08-03 15:26:09 -0600
commit3edebcb5642a1e612dbe3b490249ea9859796bbb (patch)
tree13329ebe3a583ab9a8f1dd80e5a6c03722b61aaa
parentaa3f38147fa33a8f25821e54988d05466459739f (diff)
downloadcuttlefish-3edebcb5642a1e612dbe3b490249ea9859796bbb.tar.gz
[DO NOT MERGE] Make init_boot optional part of AB_OTA_PARTITIONS
Some downstream devices do not support init_boot in Android T, and having it enabled by default breaks build automation for those devices Bug: 238666788 Test: local build + TreeHugger Change-Id: Ia4c458d3a5995e2e9bef8427a199278ff21a703c
-rw-r--r--shared/device.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/device.mk b/shared/device.mk
index 42af5f2be..e19271aec 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -66,7 +66,6 @@ PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
- init_boot \
odm \
odm_dlkm \
product \
@@ -79,6 +78,11 @@ AB_OTA_PARTITIONS += \
vendor_boot \
vendor_dlkm \
+TARGET_USES_INITBOOT ?= true
+ifeq ($(TARGET_USES_INITBOOT),true)
+AB_OTA_PARTITIONS += init_boot
+endif
+
# Enable Virtual A/B
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/android_t_baseline.mk)
PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := gz