Skip to content

Commit a76f802

Browse files
committed
ci(variant): skip H7R/S refname
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 37ddbc4 commit a76f802

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CI/update/stm32variant.py

Lines changed: 8 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy