Skip to content

Commit a76f802

Browse files
committed
ci(variant): skip H7R/S refname
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 37ddbc4 commit a76f802

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: CI/update/stm32variant.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,7 @@ def manage_repo():
24942494
templates_dir = script_path / "templates"
24952495
mcu_family_dir = ""
24962496
filtered_family = ""
2497+
refname_filter = ["STM32MP13", "STM32H7R", "STM32H7S"]
24972498
periph_c_filename = "PeripheralPins.c"
24982499
pinvar_h_filename = "PinNamesVar.h"
24992500
config_filename = script_path / "variant_config.json"
@@ -2633,8 +2634,13 @@ def manage_repo():
26332634
# Open input file
26342635
xml_mcu = parse(str(mcu_file))
26352636
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+
):
26382644
xml_mcu.unlink()
26392645
continue
26402646

0 commit comments

Comments
 (0)