Fix typo when multiple BootImageProfiles specified

cat needs a redirect to the output file.

Test: m checkbuild
Change-Id: I7f39048a3e0aa85fa7ce826bfb811e4ce5aa3277
This commit is contained in:
Colin Cross
2019-02-20 11:25:01 -08:00
parent 3d186813f2
commit 45df0bd15a

View File

@@ -399,7 +399,7 @@ func bootImageProfileRule(ctx android.SingletonContext, info *bootJarsInfo, miss
var bootImageProfile string
if len(info.global.BootImageProfiles) > 1 {
combinedBootImageProfile := info.dir.Join(ctx, "boot-image-profile.txt")
rule.Command().Text("cat").Inputs(info.global.BootImageProfiles).Output(combinedBootImageProfile.String())
rule.Command().Text("cat").Inputs(info.global.BootImageProfiles).Text(">").Output(combinedBootImageProfile.String())
bootImageProfile = combinedBootImageProfile.String()
} else {
bootImageProfile = info.global.BootImageProfiles[0]