File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2016,7 +2016,8 @@ def aggregate_dir():
2016
2016
out_family_path = root_dir / "variants" / mcu_family .name
2017
2017
# Get all mcu_dir
2018
2018
mcu_dirs = sorted (mcu_family .glob ("*/" ))
2019
-
2019
+ # Get original directory list of current serie STM32YYxx
2020
+ mcu_out_dirs_ori = sorted (out_family_path .glob ("*/" ))
2020
2021
# Group mcu directories when only expressions and xml file name are different
2021
2022
while mcu_dirs :
2022
2023
# Pop first item
@@ -2080,6 +2081,18 @@ def aggregate_dir():
2080
2081
fname .replace (out_path / fname .name )
2081
2082
del group_mcu_dir [:]
2082
2083
del mcu_dir1_files_list [:]
2084
+ # Get updated directory list of current serie STM32YYxx
2085
+ mcu_out_dirs_up = sorted (out_family_path .glob ("*/" ))
2086
+ added_dirs = set (mcu_out_dirs_up ) - set (mcu_out_dirs_ori )
2087
+ if added_dirs :
2088
+ nb_new = len (added_dirs )
2089
+ dir_str = "directories" if nb_new > 1 else "directory"
2090
+ print (f"New { dir_str } for { mcu_family .name } :" )
2091
+ for d in added_dirs :
2092
+ print (d .name )
2093
+ print (f"Please, check that each xml entry is not duplicated!" )
2094
+ del mcu_out_dirs_ori [:]
2095
+ del mcu_out_dirs_up [:]
2083
2096
2084
2097
2085
2098
def default_cubemxdir ():
You can’t perform that action at this time.
0 commit comments