From dd5236cff25d0c0e358560a8050cd18b4f298b4f Mon Sep 17 00:00:00 2001 From: Michiel Visser Date: Sat, 22 Jun 2019 16:14:24 +0200 Subject: [PATCH] Make patch a script --- keyboards/anne_pro/apply_patch.sh | 3 +++ keyboards/anne_pro/rules.mk | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 keyboards/anne_pro/apply_patch.sh diff --git a/keyboards/anne_pro/apply_patch.sh b/keyboards/anne_pro/apply_patch.sh new file mode 100755 index 0000000000..6ef0edbaf6 --- /dev/null +++ b/keyboards/anne_pro/apply_patch.sh @@ -0,0 +1,3 @@ +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" +cd $SCRIPTPATH/../../lib/chibios +git apply $SCRIPTPATH/chibios_stm32l151.patch diff --git a/keyboards/anne_pro/rules.mk b/keyboards/anne_pro/rules.mk index 7062263a98..fda74b4518 100644 --- a/keyboards/anne_pro/rules.mk +++ b/keyboards/anne_pro/rules.mk @@ -2,8 +2,7 @@ # the next two should match the directories in # /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 /os/common/ports/ARMCMx/compilers/GCC/ld/ # or /ld/