Make the STM32 Makefile.includes usable from outside the examples tree (Issue #28)

This commit is contained in:
Frantisek Burian
2014-01-06 22:11:32 +01:00
parent 9934e40fe9
commit 02c35eee70
7 changed files with 12 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
##
BINARY = adc-dac-printf
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/f1/stm32f100xb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/f1/stm32f100xb.ld
include ../../Makefile.include

View File

@@ -18,7 +18,8 @@
##
BINARY = main
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
include ../../Makefile.include

View File

@@ -18,7 +18,8 @@
##
BINARY = main
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
include ../../Makefile.include

View File

@@ -19,7 +19,7 @@
BINARY = miniblink
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
include ../../Makefile.include

View File

@@ -19,14 +19,15 @@
BINARY = usart-semihosting
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
# To disable, run "make ENABLE_SEMIHOSTING=0" or comment next line out
ENABLE_SEMIHOSTING ?= 1
ifeq ($(ENABLE_SEMIHOSTING),1)
LDFLAGS += --specs=rdimon.specs -lrdimon
CFLAGS += -DENABLE_SEMIHOSTING=1
LDFLAGS += --specs=rdimon.specs
LDLIBS += -lrdimon
DEFS += -DENABLE_SEMIHOSTING=1
endif
include ../../Makefile.include

View File

@@ -19,7 +19,7 @@
BINARY = usart
LDSCRIPT = $(TOOLCHAIN_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
include ../../Makefile.include