Skip to content

Commit

Permalink
Update Makefile to package CMSIS 5
Browse files Browse the repository at this point in the history
Package size increase more and more.
Remove useless folders and files not required for STM32duino

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
fpistm committed Oct 29, 2020
1 parent d978b46 commit f765dbe
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,46 @@ cmsis5: clean print_info
--exclude=CMSIS/DSP/Lib/ARM \
--exclude=CMSIS/DSP/Lib/ARMCLANG \
--exclude=CMSIS/DSP/Lib/IAR \
--exclude=CMSIS/DSP/Platforms \
--exclude=CMSIS/DSP/Projects \
--exclude=CMSIS/DSP/PythonWrapper \
--exclude=CMSIS/DSP/Scripts \
--exclude=CMSIS/DSP/Testing \
--exclude=CMSIS/DSP/Toolchain \
--exclude=CMSIS/NN/Examples \
--exclude=CMSIS/NN/NN_Lib_Tests \
--exclude=CMSIS/NN/Scripts \
--exclude=CMSIS/NN/Tests \
--exclude=CMSIS/Pack \
--exclude=CMSIS/RTOS/RTX/Library/ARM \
--exclude=CMSIS/RTOS/RTX/LIB/ARM \
--exclude=CMSIS/RTOS/RTX/Library/IAR \
--exclude=CMSIS/RTOS2/RTX/Examples \
--exclude=CMSIS/RTOS/RTX/LIB/IAR \
--exclude=CMSIS/RTOS/RTX/SRC/ARM \
--exclude=CMSIS/RTOS/RTX/SRC/IAR \
--exclude=CMSIS/RTOS2/RTX/Examples* \
--exclude=CMSIS/RTOS2/RTX/Library/ARM \
--exclude=CMSIS/RTOS2/RTX/Library/IAR \
--exclude=CMSIS/RTOS2/RTX/Source/ARM \
--exclude=CMSIS/RTOS2/RTX/Source/IAR \
--exclude=CMSIS/Utilities \
--exclude=Device/_Template_Vendor/Vendor/Device/Source/ARM \
--exclude=Device/_Template_Vendor/Vendor/Device/Source/IAR \
--exclude=Device/_Template_Vendor/Vendor/Device_A \
--exclude=Device/ARM/*/Source/AC5 \
--exclude=Device/ARM/*/Source/AC6 \
--exclude=Device/ARM/*/Source/ARM \
--exclude=Device/ARM/*/Source/IAR \
--exclude=Device/Utilities \
--exclude=*.cmake \
--exclude=CMakeLists.txt \
--exclude=.git \
--exclude=.gitignore \
--exclude=.gitattributes \
--exclude=manifest \
--exclude=*.pdf \
--exclude=*.py \
--exclude=*.scvd \
--transform "s|CMSIS_5|CMSIS|" \
-cjf "$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2" "$(PACKAGE_FOLDER)"
$(MAKE) PACKAGE_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .
Expand Down

0 comments on commit f765dbe

Please sign in to comment.