aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorKrzysztof Blazewicz2016-09-21 11:49:45 +0200
committerDamien George2016-09-22 12:03:12 +1000
commit9310dad15d2572de89d853c71118eed5f8309028 (patch)
tree9cbcd014ced30f389299406bb37a8a043344bfa5 /stmhal/Makefile
parentc4a69c75a5b428db3340d55a91d3c9d0880cadfd (diff)
stmhal: Put common definitions from linker files to common.ld.
Diffstat (limited to 'stmhal/Makefile')
-rw-r--r--stmhal/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index b320e0c89..c8c7f97f8 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -18,6 +18,7 @@ QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h $(BUILD)/modstm_qstr.h
# include py core make definitions
include ../py/py.mk
+LD_DIR=boards
CMSIS_DIR=cmsis
HAL_DIR=hal/$(MCU_SERIES)
USBDEV_DIR=usbdev
@@ -59,7 +60,7 @@ CFLAGS += $(COPT)
CFLAGS += -Iboards/$(BOARD)
CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
-LDFLAGS = -nostdlib -T $(LD_FILE) -Map=$(@:.elf=.map) --cref
+LDFLAGS = -nostdlib -L $(LD_DIR) -T $(LD_FILE) -Map=$(@:.elf=.map) --cref
LIBS =
# Remove uncalled code from the final image.