diff options
author | 2021-05-05 17:00:29 +0100 | |
---|---|---|
committer | 2021-05-06 13:16:27 +0000 | |
commit | 60770e22501d1141fbb871cdc372fee1ea8f0370 (patch) | |
tree | 352e5eeee114ee555726f7ddd16ffa7b007af5f3 /sdk/sdk.go | |
parent | c8ae73e67825200efa8458f594115b1dcd7773ce (diff) |
Ensure current.zip is put in the right place.
Using the InstallFile as the snapshot ensure that the artifact
in out/soong/mainline-sdks/ is built when building the sdk
target.
Test: m ipsec-module-sdk
Change-Id: I45ce6001dbae3a7a9c4cf50f8d7d5d67f94dbcb3
Diffstat (limited to 'sdk/sdk.go')
-rw-r--r-- | sdk/sdk.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk/sdk.go b/sdk/sdk.go index b60fb184f..d3788c4be 100644 --- a/sdk/sdk.go +++ b/sdk/sdk.go @@ -299,8 +299,8 @@ func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) { // Generate the snapshot from the member info. p := s.buildSnapshot(ctx, sdkVariants) - s.snapshotFile = android.OptionalPathForPath(p) - ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), s.Name()+"-current.zip", p) + zip := ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), p.Base(), p) + s.snapshotFile = android.OptionalPathForPath(zip) } } |