diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-09-13 14:02:09 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-09-13 20:40:20 +0200 |
commit | 5ec706b035b1213bb82ceabf5e7d160d8003b174 (patch) | |
tree | 6625f5f6a1a4b8cd1be5dab750c9c7603e510f97 /lavalab-gen.py | |
parent | fa9eb27201929ba157b2b57769982a13fd4e37d0 (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-x | lavalab-gen.py | 6 |
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 |