Add detail string for the module marked bp2build unconvertible

This change is only for the unconvertible modules types
from prebuilt_etc.go

Test: CI

Bug: 303725325
Change-Id: I06d8c1325c158c0669740abe7188281370655265
This commit is contained in:
Zi Wang 2023-10-12 09:58:15 -07:00
parent 786c44f9f3
commit 11bd9d4c39

View file

@ -799,7 +799,7 @@ func (module *PrebuiltEtc) ConvertWithBp2build(ctx android.Bp2buildMutatorContex
var dir = module.installDirBase
// prebuilt_file only supports "etc" or "usr/share" or "." as module installDirBase
if !(dir == "etc" || dir == "usr/share" || dir == ".") {
ctx.MarkBp2buildUnconvertible(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED, "")
ctx.MarkBp2buildUnconvertible(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED, "dir")
return
}