Add vintf_fragments.
Bug: 66917623
Test: fragments are loaded in the right place
Test: boot device which is depending on fragments
Test: androidmk file which uses LOCAL_VINTF_FRAGMENTS properly
converted
Change-Id: I366b731cf8d5ecf51851866f441ff1c517da75cf
diff --git a/android/androidmk.go b/android/androidmk.go
index 0ea7564..ebed05f 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -227,6 +227,9 @@
if len(amod.commonProperties.Init_rc) > 0 {
fmt.Fprintln(&data.preamble, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " "))
}
+ if len(amod.commonProperties.Vintf_fragments) > 0 {
+ fmt.Fprintln(&data.preamble, "LOCAL_VINTF_FRAGMENTS := ", strings.Join(amod.commonProperties.Vintf_fragments, " "))
+ }
if Bool(amod.commonProperties.Proprietary) {
fmt.Fprintln(&data.preamble, "LOCAL_PROPRIETARY_MODULE := true")
}
diff --git a/android/module.go b/android/module.go
index 1e54470..a011f57 100644
--- a/android/module.go
+++ b/android/module.go
@@ -242,6 +242,9 @@
// init.rc files to be installed if this module is installed
Init_rc []string
+ // VINTF manifest fragments to be installed if this module is installed
+ Vintf_fragments []string
+
// names of other modules to install if this module is installed
Required []string `android:"arch_variant"`