summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Zi Wang <mrziwang@google.com> 2024-06-10 22:27:31 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-06-10 22:27:31 +0000
commit7524af662b6f11cffe2b2efaeba30035ec0fae4b (patch)
tree82aa69f62daf5d1231075752dea3d9c1dfd7ca01
parent0030148fcbc83715d51f9e1fc901f08ff875a2d0 (diff)
parent4f58b5f703ca7bf20548ec8aaddb191668401beb (diff)
Merge "Use OutputFilesProvider on sh_binary" into main
-rw-r--r--sh/sh_binary.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go
index 3cbbc4547..3a4adc6f3 100644
--- a/sh/sh_binary.go
+++ b/sh/sh_binary.go
@@ -15,7 +15,6 @@
package sh
import (
- "fmt"
"path/filepath"
"strings"
@@ -188,15 +187,6 @@ func (s *ShBinary) OutputFile() android.OutputPath {
return s.outputFilePath
}
-func (s *ShBinary) OutputFiles(tag string) (android.Paths, error) {
- switch tag {
- case "":
- return android.Paths{s.outputFilePath}, nil
- default:
- return nil, fmt.Errorf("unsupported module reference tag %q", tag)
- }
-}
-
func (s *ShBinary) SubDir() string {
return proptools.String(s.properties.Sub_dir)
}
@@ -271,6 +261,8 @@ func (s *ShBinary) generateAndroidBuildActions(ctx android.ModuleContext) {
Input: s.sourceFilePath,
})
android.SetProvider(ctx, blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: []string{s.sourceFilePath.String()}})
+
+ ctx.SetOutputFiles(android.Paths{s.outputFilePath}, "")
}
func (s *ShBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {