Skip to content

Commit f765dbe

Browse files
committed
Update Makefile to package CMSIS 5
Package size increase more and more. Remove useless folders and files not required for STM32duino Signed-off-by: Frederic Pillon <[email protected]>
1 parent d978b46 commit f765dbe

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

Diff for: Makefile

+26-1
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,46 @@ cmsis5: clean print_info
8282
--exclude=CMSIS/DSP/Lib/ARM \
8383
--exclude=CMSIS/DSP/Lib/ARMCLANG \
8484
--exclude=CMSIS/DSP/Lib/IAR \
85+
--exclude=CMSIS/DSP/Platforms \
8586
--exclude=CMSIS/DSP/Projects \
87+
--exclude=CMSIS/DSP/PythonWrapper \
88+
--exclude=CMSIS/DSP/Scripts \
89+
--exclude=CMSIS/DSP/Testing \
90+
--exclude=CMSIS/DSP/Toolchain \
8691
--exclude=CMSIS/NN/Examples \
8792
--exclude=CMSIS/NN/NN_Lib_Tests \
93+
--exclude=CMSIS/NN/Scripts \
94+
--exclude=CMSIS/NN/Tests \
8895
--exclude=CMSIS/Pack \
8996
--exclude=CMSIS/RTOS/RTX/Library/ARM \
97+
--exclude=CMSIS/RTOS/RTX/LIB/ARM \
9098
--exclude=CMSIS/RTOS/RTX/Library/IAR \
91-
--exclude=CMSIS/RTOS2/RTX/Examples \
99+
--exclude=CMSIS/RTOS/RTX/LIB/IAR \
100+
--exclude=CMSIS/RTOS/RTX/SRC/ARM \
101+
--exclude=CMSIS/RTOS/RTX/SRC/IAR \
102+
--exclude=CMSIS/RTOS2/RTX/Examples* \
92103
--exclude=CMSIS/RTOS2/RTX/Library/ARM \
93104
--exclude=CMSIS/RTOS2/RTX/Library/IAR \
105+
--exclude=CMSIS/RTOS2/RTX/Source/ARM \
106+
--exclude=CMSIS/RTOS2/RTX/Source/IAR \
94107
--exclude=CMSIS/Utilities \
108+
--exclude=Device/_Template_Vendor/Vendor/Device/Source/ARM \
109+
--exclude=Device/_Template_Vendor/Vendor/Device/Source/IAR \
110+
--exclude=Device/_Template_Vendor/Vendor/Device_A \
111+
--exclude=Device/ARM/*/Source/AC5 \
112+
--exclude=Device/ARM/*/Source/AC6 \
113+
--exclude=Device/ARM/*/Source/ARM \
114+
--exclude=Device/ARM/*/Source/IAR \
115+
--exclude=Device/Utilities \
116+
--exclude=*.cmake \
117+
--exclude=CMakeLists.txt \
95118
--exclude=.git \
96119
--exclude=.gitignore \
97120
--exclude=.gitattributes \
98121
--exclude=manifest \
99122
--exclude=*.pdf \
123+
--exclude=*.py \
124+
--exclude=*.scvd \
100125
--transform "s|CMSIS_5|CMSIS|" \
101126
-cjf "$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2" "$(PACKAGE_FOLDER)"
102127
$(MAKE) PACKAGE_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .

0 commit comments

Comments
 (0)