Add Sh_binaries property

The sh_binary module is not supported the vendor variant. So, even if
there is "vendor: true" in sh_binary module, the image variant is
"image:" instead of "image:vendor.Tiramisu".
But the vendor APEX has vendor variant, so vendor APEX module and
sh_binary module have different variants and the sh_binary cannot be
added to vendor apex.
So the Sh_binaries property is added, and the image variant is removed
at DepsMutator.

Bug: 205065320
Test: make -j40 && sh_binary is added to vendor APEX && install check
Change-Id: I30e2d96a73b45e7b06eff24550542cb010008c41
This commit is contained in:
Sundong Ahn
2021-11-23 00:57:19 +00:00
parent 7b5fa4277f
commit 80c04891de
2 changed files with 19 additions and 4 deletions

View File

@@ -4248,7 +4248,7 @@ func TestApexWithShBinary(t *testing.T) {
apex {
name: "myapex",
key: "myapex.key",
binaries: ["myscript"],
sh_binaries: ["myscript"],
updatable: false,
}