summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-04-22 18:50:31 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2015-04-22 18:50:31 +0300
commit0dcdf89d62e20dc3d244ba5e63661fa191165b67 (patch)
tree748a8331d047477d354c6535a2c9507e42a63850
parent5aa8e6730f48f52b45ae14570af8048fe87e3a3f (diff)
downloadlci-build-tools-0dcdf89d62e20dc3d244ba5e63661fa191165b67.tar.gz
yaml-to-json: add DEVICE_TARGET support
in order to specify a specific device to target in a LAVA job submission, add DEVICE_TARGET environment variable support. Note: LAVA is using "target" in JSON but it's too mcuh generic to use the same variable as-is. Hence we prefix with DEVICE_, along the same line as DEVICE_TYPE Change-Id: I8fffb6d2295fe858992840fd4b103eb8900fb0b3 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xyaml-to-json.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yaml-to-json.py b/yaml-to-json.py
index 32d9735..95a0c5c 100755
--- a/yaml-to-json.py
+++ b/yaml-to-json.py
@@ -17,6 +17,7 @@ def main():
BUILD_URL=os.environ.get('BUILD_URL'),
BUNDLE_STREAM_NAME=os.environ.get('BUNDLE_STREAM_NAME'),
DATA_URL=os.environ.get('DATA_URL'),
+ DEVICE_TARGET=os.environ.get('DEVICE_TARGET'),
DEVICE_TYPE=os.environ.get('DEVICE_TYPE'),
DTB=os.environ.get('DTB'),
DTB_URL=os.environ.get('DTB_URL'),