diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-10-16 11:20:59 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-10-17 16:27:02 +0200 |
commit | 135f1dca856775d0d365c0c1045a7add8626da01 (patch) | |
tree | acb42f5c455385dcac78d82e7ece15da57622405 /lavalab-gen.py | |
parent | 033ceaa64ad89cdedb45f3fc3b6269063402b1bd (diff) |
Permit to set a group on boards
This patch permit to add a group on boards
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index 17eba31..9af872b 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -490,6 +490,13 @@ def main(): deviceinfo = open("%s/deviceinfo/%s" % (workerdir, board_name), 'w') deviceinfo.write("DEVICE_USER=%s\n" % board["user"]) deviceinfo.close() + if "group" in board: + if "user" in board: + print("user and group are exclusive") + sys.exit(1) + deviceinfo = open("%s/deviceinfo/%s" % (workerdir, board_name), 'w') + deviceinfo.write("DEVICE_GROUP=%s\n" % board["group"]) + deviceinfo.close() if "custom_option" in board: for coption in board["custom_option"]: device_line += "{%% %s %%}\n" % coption |