File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2494,6 +2494,7 @@ def manage_repo():
2494
2494
templates_dir = script_path / "templates"
2495
2495
mcu_family_dir = ""
2496
2496
filtered_family = ""
2497
+ refname_filter = ["STM32MP13" , "STM32H7R" , "STM32H7S" ]
2497
2498
periph_c_filename = "PeripheralPins.c"
2498
2499
pinvar_h_filename = "PinNamesVar.h"
2499
2500
config_filename = script_path / "variant_config.json"
@@ -2633,8 +2634,13 @@ def manage_repo():
2633
2634
# Open input file
2634
2635
xml_mcu = parse (str (mcu_file ))
2635
2636
parse_mcu_file ()
2636
- # Generate only for one family
2637
- if filtered_family and filtered_family not in mcu_family or "MP13" in mcu_refname :
2637
+
2638
+ # Generate only for one family or supported reference
2639
+ if (
2640
+ filtered_family
2641
+ and filtered_family not in mcu_family
2642
+ or any (skp in mcu_refname for skp in refname_filter )
2643
+ ):
2638
2644
xml_mcu .unlink ()
2639
2645
continue
2640
2646
You can’t perform that action at this time.
0 commit comments