Skip to content

Commit 37da736

Browse files
committed
script: stm32variant: fix duplicate flash entry
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent f8c4aa0 commit 37da736

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CI/utils/stm32variant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,8 @@ def group_by_flash(group_base_list, glist, index_mcu_base):
17681768
expanded_dir_list.append(flash + subf.group(3))
17691769
else:
17701770
expanded_dir_list.append(dir_name[index_mcu_base:])
1771+
# Remove duplicate
1772+
expanded_dir_list = list(dict.fromkeys(expanded_dir_list))
17711773
expanded_dir_list.sort()
17721774
group_flash_list = [list(g) for _, g in groupby(expanded_dir_list, keyflash)]
17731775
packages_per_flash = OrderedDict()

0 commit comments

Comments
 (0)