Make patch a script

anne_pro
Michiel Visser 2019-06-22 16:14:24 +02:00
parent e402893493
commit dd5236cff2
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,3 @@
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd $SCRIPTPATH/../../lib/chibios
git apply $SCRIPTPATH/chibios_stm32l151.patch

View File

@ -2,8 +2,7 @@
# the next two should match the directories in
# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
MCU_FAMILY = STM32
# This is a hack to automatically apply the patch to ChibiOS
MCU_SERIES = $(shell echo STM32L1xx; cd lib/chibios; git apply ../../keyboards/anne_pro/chibios_stm32l151.patch 2>/dev/null)
MCU_SERIES = STM32L1xx
# linker script to use
# it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
# or <this_dir>/ld/