lineage: use AB_OTA_PARTITIONS flag for including backuptool_ab
* Newer pixel devices get AB_OTA_UPDATER enabled from
build/make/target/board/BoardConfigMainlineCommon.mk which
is not included in time for this check.
Change-Id: I1679709b7178398ffaa62ad14a6d042ff377fd5a
diff --git a/config/common.mk b/config/common.mk
index 74e0afe..eda0f60 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -38,7 +38,7 @@
vendor/lineage/prebuilt/common/bin/50-lineage.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-lineage.sh \
vendor/lineage/prebuilt/common/bin/blacklist:$(TARGET_COPY_OUT_SYSTEM)/addon.d/blacklist
-ifeq ($(AB_OTA_UPDATER),true)
+ifneq ($(AB_OTA_PARTITIONS),)
PRODUCT_COPY_FILES += \
vendor/lineage/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \
vendor/lineage/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \