diff options
author | 2023-09-05 09:18:50 -0400 | |
---|---|---|
committer | 2023-09-07 12:26:22 -0400 | |
commit | d5d12d028b8855011169231e24f411d5b138da05 (patch) | |
tree | 3576887f16f40990bfaa9b168d2927287ce27547 /xml | |
parent | 7d885d53a66fc5e348b5d500a003c8ee66e1ee6c (diff) |
bp2build: block src == name for prebuilt_* modules
src == name causes circular dependency errors, instead mark these as
unconverted and don't create modules for them.
Test: m bp2build and verify boringssl_self_test.zygote64.rc unconverted
Change-Id: I5d5fdd7e14830cd685816064cd0377998d07293c
Diffstat (limited to 'xml')
-rw-r--r-- | xml/xml.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xml/xml.go b/xml/xml.go index 8c0c07282..20a26f562 100644 --- a/xml/xml.go +++ b/xml/xml.go @@ -146,7 +146,11 @@ type bazelPrebuiltEtcXmlAttributes struct { } func (p *prebuiltEtcXml) ConvertWithBp2build(ctx android.TopDownMutatorContext) { - baseAttrs := p.PrebuiltEtc.Bp2buildHelper(ctx) + baseAttrs, convertible := p.PrebuiltEtc.Bp2buildHelper(ctx) + + if !convertible { + return + } var schema *string if p.properties.Schema != nil { |