aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-11-09 17:21:14 -0800
committerColin Cross <ccross@android.com>2021-11-09 17:25:57 -0800
commit94bf5189327467f3fe54d772ee16451c054c6ff2 (patch)
tree0a797cf21af6ef3f92f7de035ba3c96352126bc8 /sh
parent7e07e20723f1ce8d11e830000e23596b503b99ca (diff)
Add symlinks to Soong-installed sh_binary
I3f9928c6d6993c381859b80c335b800b1a9769ee moved sh_binary installation to Soong, but the Soong install rules didn't include the symlinks. Bug: 204136549 Test: m checkbuild Change-Id: I8dd663c7d6a3259b397a11787e0869f32d0530cd
Diffstat (limited to 'sh')
-rw-r--r--sh/sh_binary.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go
index bf97b88f8..d5033ef84 100644
--- a/sh/sh_binary.go
+++ b/sh/sh_binary.go
@@ -275,6 +275,9 @@ func (s *ShBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
s.generateAndroidBuildActions(ctx)
installDir := android.PathForModuleInstall(ctx, "bin", proptools.String(s.properties.Sub_dir))
s.installedFile = ctx.InstallExecutable(installDir, s.outputFilePath.Base(), s.outputFilePath)
+ for _, symlink := range s.Symlinks() {
+ ctx.InstallSymlink(installDir, symlink, s.installedFile)
+ }
}
func (s *ShBinary) AndroidMkEntries() []android.AndroidMkEntries {