diff options
author | khilman <khilman@users.noreply.github.com> | 2018-09-17 08:05:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 08:05:40 -0700 |
commit | 869ae36fae80df03e5ed55a26a6f251488a05db4 (patch) | |
tree | 6625f5f6a1a4b8cd1be5dab750c9c7603e510f97 /lavalab-gen.py | |
parent | 55579b2a662bee819a2c531d3db99edd3f230212 (diff) | |
parent | 5ec706b035b1213bb82ceabf5e7d160d8003b174 (diff) |
Merge pull request #48 from montjoie/tags
Permit to add tags to devices
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 |