From a76f80288f2a73b40cfb3d8058438a0a238ebea3 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 8 Apr 2024 15:55:16 +0200 Subject: [PATCH] ci(variant): skip H7R/S refname Signed-off-by: Frederic Pillon --- CI/update/stm32variant.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CI/update/stm32variant.py b/CI/update/stm32variant.py index e3d3ed5350..782e5b317c 100644 --- a/CI/update/stm32variant.py +++ b/CI/update/stm32variant.py @@ -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" @@ -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