Skip to content

Commit

Permalink
ci(variant): skip H7R/S refname
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Apr 8, 2024
1 parent 37ddbc4 commit a76f802
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CI/update/stm32variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,7 @@ def manage_repo():
templates_dir = script_path / "templates"
mcu_family_dir = ""
filtered_family = ""
refname_filter = ["STM32MP13", "STM32H7R", "STM32H7S"]
periph_c_filename = "PeripheralPins.c"
pinvar_h_filename = "PinNamesVar.h"
config_filename = script_path / "variant_config.json"
Expand Down Expand Up @@ -2633,8 +2634,13 @@ def manage_repo():
# Open input file
xml_mcu = parse(str(mcu_file))
parse_mcu_file()
# Generate only for one family
if filtered_family and filtered_family not in mcu_family or "MP13" in mcu_refname:

# Generate only for one family or supported reference
if (
filtered_family
and filtered_family not in mcu_family
or any(skp in mcu_refname for skp in refname_filter)
):
xml_mcu.unlink()
continue

Expand Down

0 comments on commit a76f802

Please sign in to comment.