From 7b6db6897432acf97de65600b94dd0c98fb13277 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 13 Aug 2024 11:08:41 -0700 Subject: [PATCH] tools: stranded group --- Tools/generate_board_targets_json.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Tools/generate_board_targets_json.py b/Tools/generate_board_targets_json.py index 30ae399279fd..3cc8dbc0c948 100755 --- a/Tools/generate_board_targets_json.py +++ b/Tools/generate_board_targets_json.py @@ -183,6 +183,19 @@ def comma_targets(targets): temp_group.append(tar) if verbose: print('Temp(', len(temp_group), '):[', man, '][', arch, ':', last_arch, ']: ', tar) + if(last_arch != arch and len(temp_group) > 0): + group_name = last_arch + "-" + str(group_number[last_arch]) + group_number[last_arch] += 1 + targets = comma_targets(temp_group) + if verbose: print("Append-4: [", group_name, "]", targets) + final_groups.append({ + "container": grouped_targets[last_arch]['container'], + "targets": targets, + "arch": last_arch, + "group": group_name + }) + last_arch = arch + temp_group = [] if(len(temp_group) > 4): group_name = arch + "-" + str(group_number[arch]) last_arch = arch