Skip to content
Snippets Groups Projects
Commit 54c6fe74 authored by BytesGalore's avatar BytesGalore
Browse files

Merge pull request #2033 from haukepetersen/fix_msbiot_cpp

board/msbiot: added support for C++
parents de2a8b2b af271114
No related branches found
No related tags found
No related merge requests found
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_gpio
...@@ -17,6 +17,7 @@ export PORT ...@@ -17,6 +17,7 @@ export PORT
# define tools used for building the project # define tools used for building the project
export PREFIX = arm-none-eabi- export PREFIX = arm-none-eabi-
export CC = $(PREFIX)gcc export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export AR = $(PREFIX)ar export AR = $(PREFIX)ar
export AS = $(PREFIX)as export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc export LINK = $(PREFIX)gcc
...@@ -40,6 +41,10 @@ export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x8000000 ...@@ -40,6 +41,10 @@ export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x8000000
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(BINDIR)/$(APPLICATION).elf export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(BINDIR)/$(APPLICATION).elf
export TERMFLAGS += -p "$(PORT)" export TERMFLAGS += -p "$(PORT)"
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export CXXUWFLAGS +=
export CXXEXFLAGS +=
# use newLib nano-specs if available # use newLib nano-specs if available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
export LINKFLAGS += -specs=nano.specs -lc -lnosys export LINKFLAGS += -specs=nano.specs -lc -lnosys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment