diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2018-03-05 18:09:41 +0200 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-03-09 15:14:17 +1100 |
| commit | 66748aaf60ae8bc4dabfeedcb922e284a8ec34f5 (patch) | |
| tree | 8865221eadaa6e74ea2a3ba1fc8c0fad489327ea | |
| parent | 88157715dbc423964eeb906648f5511d764b6578 (diff) | |
stm32/Makefile: Use separate startup file for each MCU series.
| -rw-r--r-- | ports/stm32/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 5e4ec9f6f..112093f84 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -37,6 +37,7 @@ DEVICE=0483:df11 STFLASH ?= st-flash OPENOCD ?= openocd OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg +STARTUP_FILE ?= boards/startup_stm32$(MCU_SERIES).o CROSS_COMPILE = arm-none-eabi- @@ -248,7 +249,7 @@ SRC_C = \ $(wildcard boards/$(BOARD)/*.c) SRC_O = \ - startup_stm32.o \ + $(STARTUP_FILE) \ gchelper.o \ $(BUILD)/$(HAL_DIR)/Src/%.o: CFLAGS += -fno-strict-aliasing |
