From 5ec706b035b1213bb82ceabf5e7d160d8003b174 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 13 Sep 2018 14:02:09 +0200 Subject: Permit to add tags to devices This patch permits to add tags to device Signed-off-by: Corentin Labbe --- lavalab-gen.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lavalab-gen.py') 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 -- cgit 1.2.3-korg