File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2381,14 +2381,20 @@ def aggregate_dir():
2381
2381
dir_str = "Directories" if nb_old > 1 else "Directory"
2382
2382
print (f"\n { dir_str } not updated for { mcu_family .name } :\n " )
2383
2383
for d in old_dirs :
2384
- print (f" - { d .name } " )
2384
+ # Check if ldsript.ld file exists in the folder
2385
+ if not (d / "ldscript.ld" ).exists ():
2386
+ deleteFolder (d )
2387
+ print (f" - { d .name } (deleted)" )
2388
+ else :
2389
+ print (f" - { d .name } " )
2385
2390
print (
2386
2391
"""
2387
- --> Please, check if it is due to directory name update (renamed), if true then:
2392
+ --> For each directory not deleted, it requires manual update as it was renamed:
2393
+ - Find new directory name.
2388
2394
- Move custom boards definition files, if any.
2389
- - Move linker script(s), if any .
2395
+ - Move linker script(s).
2390
2396
- Copy 'SystemClock_Config(void)' function to the new generic clock config file.
2391
- --> Then remove it, update old path in boards.txt
2397
+ --> Then remove it and update old path in boards.txt
2392
2398
(for custom board(s) as well as generic ones).
2393
2399
"""
2394
2400
)
You can’t perform that action at this time.
0 commit comments