Add prebuilt_etc_host to bp2build conversion.

Test: bp2build.sh
Change-Id: I976a7f325f00d65867c27e0c3feba34ff217975f
This commit is contained in:
Liz Kammer 2021-12-22 15:32:18 -05:00
parent 7febef761a
commit a923442da6

View file

@ -439,6 +439,7 @@ func PrebuiltEtcHostFactory() android.Module {
// This module is host-only
android.InitAndroidArchModule(module, android.HostSupported, android.MultilibCommon)
android.InitDefaultableModule(module)
android.InitBazelModule(module)
return module
}
@ -665,7 +666,7 @@ type bazelPrebuiltEtcAttributes struct {
// ConvertWithBp2build performs bp2build conversion of PrebuiltEtc
func (p *PrebuiltEtc) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
// All prebuilt_* modules are PrebuiltEtc, but at this time, we only convert prebuilt_etc modules.
if ctx.ModuleType() != "prebuilt_etc" {
if p.installDirBase != "etc" {
return
}