File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 5656md_CMSIS_path = "STM32YYxx_CMSIS_version.md"
5757md_HAL_path = "STM32YYxx_HAL_Driver_version.md"
5858
59+ # Pattern list of files to skip
60+ hal_skip_pattern = {"*.chm" }
61+ cmsis_skip_pattern = {"iar" , "arm" }
62+ common_skip_pattern = {
63+ ".github" ,
64+ "CODE_OF_CONDUCT.md" ,
65+ "CONTRIBUTING.md" ,
66+ "SECURITY.md" ,
67+ }
68+
5969# stm32 def file to update
6070stm32_def = "stm32_def.h"
6171
@@ -845,7 +855,11 @@ def updateCore():
845855 HAL_serie_cube_path = (
846856 cube_path / hal_src_path / f"STM32{ serie } xx_HAL_Driver"
847857 )
848- copyFolder (HAL_serie_cube_path , HAL_serie_core_path , {"*.chm" })
858+ copyFolder (
859+ HAL_serie_cube_path ,
860+ HAL_serie_core_path ,
861+ hal_skip_pattern .union (common_skip_pattern ),
862+ )
849863 # Update MD file
850864 updateMDFile (md_HAL_path , serie , cube_HAL_ver )
851865 # Commit all HAL files
@@ -863,7 +877,11 @@ def updateCore():
863877 deleteFolder (CMSIS_serie_dest_path )
864878 # Copy new one
865879 CMSIS_serie_cube_path = cube_path / cmsis_src_path / f"STM32{ serie } xx"
866- copyFolder (CMSIS_serie_cube_path , CMSIS_serie_dest_path , {"iar" , "arm" })
880+ copyFolder (
881+ CMSIS_serie_cube_path ,
882+ CMSIS_serie_dest_path ,
883+ cmsis_skip_pattern .union (common_skip_pattern ),
884+ )
867885 # Update MD file
868886 updateMDFile (md_CMSIS_path , serie , cube_CMSIS_ver )
869887 # Commit all CMSIS files
You can’t perform that action at this time.
0 commit comments