File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2016,7 +2016,8 @@ def aggregate_dir():
20162016 out_family_path = root_dir / "variants" / mcu_family .name
20172017 # Get all mcu_dir
20182018 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 ("*/" ))
20202021 # Group mcu directories when only expressions and xml file name are different
20212022 while mcu_dirs :
20222023 # Pop first item
@@ -2080,6 +2081,18 @@ def aggregate_dir():
20802081 fname .replace (out_path / fname .name )
20812082 del group_mcu_dir [:]
20822083 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 [:]
20832096
20842097
20852098def default_cubemxdir ():
You can’t perform that action at this time.
0 commit comments