summaryrefslogtreecommitdiff
path: root/tmk_core/chibios.mk
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-08-18 04:23:22 +1000
committerGitHub <noreply@github.com>2021-08-18 04:23:22 +1000
commit37496f4b6047248c25195e13e0f90593dc492fff (patch)
tree5625c447db985439420ea0c319ce39c6e4ae3954 /tmk_core/chibios.mk
parent7da97c293da851851c204af065a0c8d2f884effd (diff)
downloadqmk_firmware-37496f4b6047248c25195e13e0f90593dc492fff.tar.gz
qmk_firmware-37496f4b6047248c25195e13e0f90593dc492fff.zip
Add alternate ldscript for STM32duino (F103xB) (#12914)
* Add alternate ldscript for STM32duino (F103xB) * Refactor out common ldscript stuff * Move ldscripts into stm32duino board dir, add search path to ldflags
Diffstat (limited to 'tmk_core/chibios.mk')
-rw-r--r--tmk_core/chibios.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk
index 827f080e58..cbd9fff692 100644
--- a/tmk_core/chibios.mk
+++ b/tmk_core/chibios.mk
@@ -191,6 +191,7 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/ld/$(MCU_LDSCRIPT).ld)","")
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld)","")
LDSCRIPT = $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/ld/$(MCU_LDSCRIPT).ld)","")
+ LDFLAGS += -L$(TOP_DIR)/platforms/chibios/$(BOARD)/ld
LDSCRIPT = $(TOP_DIR)/platforms/chibios/$(BOARD)/ld/$(MCU_LDSCRIPT).ld
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/common/ld/$(MCU_LDSCRIPT).ld)","")
LDSCRIPT = $(TOP_DIR)/platforms/chibios/common/ld/$(MCU_LDSCRIPT).ld