Disable VTS builds for product_specific interfaces. am: 3d69028b08 am: a984f2d017
Change-Id: I4166e2a0be1ee3e28478098c1593f3803210fc5f
diff --git a/build/hidl_interface.go b/build/hidl_interface.go
index b48a7b0..03c32d2 100644
--- a/build/hidl_interface.go
+++ b/build/hidl_interface.go
@@ -464,6 +464,10 @@
// example: -randroid.hardware:hardware/interfaces
Full_root_option string `blueprint:"mutated"`
+
+ // Whether this interface library should be installed on product partition.
+ // TODO(b/150902910): remove, since this should be an inherited property.
+ Product_specific *bool
}
type hidlInterface struct {
@@ -574,6 +578,9 @@
shouldGenerateJavaConstants := i.properties.Gen_java_constants
shouldGenerateVts := shouldGenerateLibrary && proptools.BoolDefault(i.properties.Gen_vts, true)
+ // TODO(b/150902910): re-enable VTS builds for product things
+ shouldGenerateVts = shouldGenerateVts && !proptools.Bool(i.properties.Product_specific)
+
var libraryIfExists []string
if shouldGenerateLibrary {
libraryIfExists = []string{name.string()}