feat(config_toolchain): add `env`, `data` and `toolchains`
These changes allow providing files, environment variables and tools (through toolchains) to a Labgrid config file.
labgrid_config_toolchain(
# ...
env = {
"MY_DATA_PATH": "$(location :my-data)",
"MY_TOOL_PATH": "$(MY_TOOL)",
},
data = [":my-data"],
toolchains = ["//my_tool/toolchain:resolved"],
# ...
)
These values can be accessed within the Labgrid config file by using the !template
directive to expand environment variables.