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
This commit is contained in:
parent
b1a66c0cf7
commit
70a5f07663
2 changed files with 10 additions and 0 deletions
|
@ -386,6 +386,10 @@ func (w *androidMkWriter) handleModule(inputModule *bpparser.Module) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if ignoredModuleType[inputModule.Type.Name] {
|
||||
return nil
|
||||
}
|
||||
|
||||
modules, err := w.mutateModule(newModule(inputModule))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -94,6 +94,12 @@ var moduleTypeToRule = map[string]string{
|
|||
"prebuilt": "BUILD_PREBUILT",
|
||||
}
|
||||
|
||||
var ignoredModuleType = map[string]bool{
|
||||
"bootstrap_go_binary": true,
|
||||
"bootstrap_go_package": true,
|
||||
"toolchain_library": true,
|
||||
}
|
||||
|
||||
var suffixProperties = map[string]map[string]string{
|
||||
"multilib": {"lib32": "32", "lib64": "64"},
|
||||
"arch": {"arm": "arm", "arm64": "arm64", "mips": "mips", "mips64": "mips64",
|
||||
|
|
Loading…
Reference in a new issue