Make patch a script
parent
e402893493
commit
dd5236cff2
|
|
@ -0,0 +1,3 @@
|
|||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
cd $SCRIPTPATH/../../lib/chibios
|
||||
git apply $SCRIPTPATH/chibios_stm32l151.patch
|
||||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in New Issue