Add soong_config_get

Having a function to get soong config variables
makes it easier to convert to starlark.

Bug: 201700692
Test: m RBC_PRODUCT_CONFIG=1 RBC_BOARD_CONFIG=1 nothing and check output files
Change-Id: I8627555df10d3f66f6154c00be9f0565076f1f94
This commit is contained in:
Cole Faust
2021-11-08 12:12:45 -08:00
parent 2f1bd70c9c
commit 70a886c7ce
4 changed files with 19 additions and 2 deletions

View File

@@ -94,3 +94,6 @@ assert_eq(
assert_eq("S", globals["PLATFORM_VERSION"])
assert_eq(30, globals["PLATFORM_SDK_VERSION"])
assert_eq("xyz", rblf.soong_config_get(globals, "NS2", "v3"))
assert_eq(None, rblf.soong_config_get(globals, "NS2", "nonexistant_var"))