diff --git a/etc/prebuilt_etc.go b/etc/prebuilt_etc.go index 850c8f95a..57563eb07 100644 --- a/etc/prebuilt_etc.go +++ b/etc/prebuilt_etc.go @@ -28,6 +28,8 @@ package etc // various `prebuilt_*` mutators. import ( + "fmt" + "github.com/google/blueprint/proptools" "android/soong/android" @@ -208,6 +210,17 @@ func (p *PrebuiltEtc) OutputFile() android.OutputPath { return p.outputFilePath } +var _ android.OutputFileProducer = (*PrebuiltEtc)(nil) + +func (p *PrebuiltEtc) OutputFiles(tag string) (android.Paths, error) { + switch tag { + case "": + return android.Paths{p.outputFilePath}, nil + default: + return nil, fmt.Errorf("unsupported module reference tag %q", tag) + } +} + func (p *PrebuiltEtc) SubDir() string { if subDir := proptools.String(p.properties.Sub_dir); subDir != "" { return subDir diff --git a/java/java.go b/java/java.go index e14815e92..69ec2a442 100644 --- a/java/java.go +++ b/java/java.go @@ -2432,7 +2432,7 @@ type testProperties struct { // list of files or filegroup modules that provide data that should be installed alongside // the test - Data []string `android:"path,arch_variant"` + Data []string `android:"path"` // Flag to indicate whether or not to create test config automatically. If AndroidTest.xml // doesn't exist next to the Android.bp, this attribute doesn't need to be set to true