Reformat build/soong for go 1.19
Test: none Change-Id: I132368f0fcbdb5ea088b5b84dbe4ccfdd9e94cad
This commit is contained in:
@@ -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 (
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user