Fail build if DA flag is enabled without vendor modules one
This is a cheap version of the flag dependency management system until
the dependency between build time flags is properly supported by build
system
Bug: 298007909
Test: builds
Test: only set RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT
Test: verify build fails
Change-Id: I2644bfccbacc17df5ae0b1a4350ceb0955a71d71
diff --git a/apex/product_packages.mk b/apex/product_packages.mk
index ef84551..4c03836 100644
--- a/apex/product_packages.mk
+++ b/apex/product_packages.mk
@@ -37,3 +37,10 @@
PRODUCT_FSVERITY_GENERATE_METADATA := true
PRODUCT_AVF_ENABLED := true
+
+# The cheap build flags dependency management system until there is a proper one.
+ifdef RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT
+ ifndef RELEASE_AVF_ENABLE_VENDOR_MODULES
+ $(error RELEASE_AVF_ENABLE_VENDOR_MODULES must also be enabled)
+ endif
+endif