Reformat build/soong for go 1.19

Test: none
Change-Id: I132368f0fcbdb5ea088b5b84dbe4ccfdd9e94cad
This commit is contained in:
Colin Cross
2022-08-16 10:27:33 -07:00
parent 852d0c4859
commit d079e0b270
67 changed files with 541 additions and 524 deletions

View File

@@ -14,13 +14,13 @@
// Convert makefile containing device configuration to Starlark file
// The conversion can handle the following constructs in a makefile:
// * comments
// * simple variable assignments
// * $(call init-product,<file>)
// * $(call inherit-product-if-exists
// * if directives
// All other constructs are carried over to the output starlark file as comments.
// - comments
// - simple variable assignments
// - $(call init-product,<file>)
// - $(call inherit-product-if-exists
// - if directives
//
// All other constructs are carried over to the output starlark file as comments.
package mk2rbc
import (

View File

@@ -32,8 +32,8 @@ type context struct {
// Scans the makefile Soong uses to generate soong.variables file,
// collecting variable names and types from the lines that look like this:
// $(call add_json_XXX, <...>, $(VAR))
//
// $(call add_json_XXX, <...>, $(VAR))
func FindSoongVariables(mkFile string, includeFileScope mkparser.Scope, registrar variableRegistrar) error {
ctx := context{includeFileScope, registrar}
return ctx.doFind(mkFile)