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:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user