Remove out/host/common/obj/PACKAGING during installclean

Tradefed packages are created in out/host/common/obj/PACKAGING
and should be removed during installclean so that they get an
accurate embedded build number.

Fixes: 170308394
Test: treehugger
Change-Id: Ib7a57377b5c9512584bc93f10da316eadf786979
This commit is contained in:
Colin Cross 2020-10-09 19:11:22 -07:00
parent 6682ef42a4
commit 3e6f67a68b
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,10 @@ func installClean(ctx Context, config Config, what int) {
return filepath.Join(hostOutPath, path)
}
hostCommonOut := func(path string) string {
return filepath.Join(config.hostOutRoot(), "common", path)
}
productOutPath := config.ProductOut()
productOut := func(path string) string {
return filepath.Join(productOutPath, path)
@ -101,6 +105,7 @@ func installClean(ctx Context, config Config, what int) {
hostOut("vts"),
hostOut("vts10"),
hostOut("vts-core"),
hostCommonOut("obj/PACKAGING"),
productOut("*.img"),
productOut("*.zip"),
productOut("android-info.txt"),