Product config makefiles to Starlark converter

Test: treehugger; internal tests in mk2rbc_test.go
Bug: 172923994
Change-Id: I43120b9c181ef2b8d9453e743233811b0fec268b
This commit is contained in:
Sasha Smundak
2020-11-05 20:45:07 -08:00
parent e04058f291
commit b051c4ede3
11 changed files with 3885 additions and 1 deletions

14
mk2rbc/TODO Normal file
View File

@@ -0,0 +1,14 @@
* Checking filter/filter-out results is incorrect if pattern contains '%'
* Need heuristics to recognize that a variable is local. Propose to use lowercase.
* Need heuristics for the local variable type. Propose '_list' suffix
* Internal source tree has variables in the inherit-product macro argument. Handle it
* Enumerate all environment variables that configuration files use.
* Break mk2rbc.go into multiple files.
* If variable's type is not yet known, try to divine it from the value assigned to it
(it may be a variable of the known type, or a function result)
* ifneq (,$(VAR)) should translate to
if getattr(<>, "VAR", <default>):
* Launcher file needs to have same suffix as the rest of the generated files
* Implement $(shell) function
* Write execution tests
* Review all TODOs in mk2rbc.go