mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-21 20:43:50 +01:00
Merge pull request #2032 from haukepetersen/fix_sparkcore_cpp
board/spark-core: enabled C++
This commit is contained in:
commit
e087389dd8
1
boards/spark-core/Makefile.features
Normal file
1
boards/spark-core/Makefile.features
Normal file
@ -0,0 +1 @@
|
|||||||
|
FEATURES_PROVIDED += cpp
|
||||||
@ -10,6 +10,7 @@ export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE))
|
|||||||
# 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
|
||||||
@ -34,6 +35,10 @@ export FFLAGS = $(HEXFILE)
|
|||||||
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
|
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
|
||||||
export TERMFLAGS = -p $(PORT)
|
export TERMFLAGS = -p $(PORT)
|
||||||
|
|
||||||
|
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
|
||||||
|
export CXXUWFLAGS +=
|
||||||
|
export CXXEXFLAGS +=
|
||||||
|
|
||||||
# use the nano-specs of the NewLib when available
|
# use the nano-specs of the NewLib when 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user