Skip to content

Commit

Permalink
tools: stranded group
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpollo committed Aug 13, 2024
1 parent 23d36fd commit 7b6db68
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tools/generate_board_targets_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b6db68

Please sign in to comment.