File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 56
56
md_CMSIS_path = "STM32YYxx_CMSIS_version.md"
57
57
md_HAL_path = "STM32YYxx_HAL_Driver_version.md"
58
58
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
+
59
69
# stm32 def file to update
60
70
stm32_def = "stm32_def.h"
61
71
@@ -845,7 +855,11 @@ def updateCore():
845
855
HAL_serie_cube_path = (
846
856
cube_path / hal_src_path / f"STM32{ serie } xx_HAL_Driver"
847
857
)
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
+ )
849
863
# Update MD file
850
864
updateMDFile (md_HAL_path , serie , cube_HAL_ver )
851
865
# Commit all HAL files
@@ -863,7 +877,11 @@ def updateCore():
863
877
deleteFolder (CMSIS_serie_dest_path )
864
878
# Copy new one
865
879
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
+ )
867
885
# Update MD file
868
886
updateMDFile (md_CMSIS_path , serie , cube_CMSIS_ver )
869
887
# Commit all CMSIS files
You can’t perform that action at this time.
0 commit comments