summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-09-13 14:02:09 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-09-13 20:40:20 +0200
commit5ec706b035b1213bb82ceabf5e7d160d8003b174 (patch)
tree6625f5f6a1a4b8cd1be5dab750c9c7603e510f97 /lavalab-gen.py
parentfa9eb27201929ba157b2b57769982a13fd4e37d0 (diff)
Permit to add tags to devices
This patch permits to add tags to device Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-xlavalab-gen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py
index 517d0ad..80c10e7 100755
--- a/lavalab-gen.py
+++ b/lavalab-gen.py
@@ -456,6 +456,12 @@ def main():
if "fastboot_serial_number" in board:
fserial = board["fastboot_serial_number"]
device_line += "{%% set fastboot_serial_number = '%s' %%}" % fserial
+ if "tags" in board:
+ tagdir = "%s/tags/" % workerdir
+ ftag = open("%s/%s" % (tagdir, board_name), 'w')
+ for tag in board["tags"]:
+ ftag.write("%s\n" % tag)
+ ftag.close()
if "custom_option" in board:
for coption in board["custom_option"]:
device_line += "{%% %s %%}\n" % coption