Ignore some module types during translation
bootstrap_go_binary and bootstrap_go_package modules are part
of Blueprint and don't need to be translated.
toolchain_library modules are used by Soong to wrap gcc-provided
libraries are don't need to be translated.
Change-Id: I1602849060b6c85a43fc1ffb8e98c752d9d1512b
diff --git a/androidbp/cmd/androidbp.go b/androidbp/cmd/androidbp.go
index 4a850a8..abbaf4b 100644
--- a/androidbp/cmd/androidbp.go
+++ b/androidbp/cmd/androidbp.go
@@ -386,6 +386,10 @@
return nil
}
+ if ignoredModuleType[inputModule.Type.Name] {
+ return nil
+ }
+
modules, err := w.mutateModule(newModule(inputModule))
if err != nil {
return err