1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

board/cc2538dk: enabled C++ support

This commit is contained in:
Hauke Petersen 2014-11-18 19:10:29 +01:00
parent 1607e3aefb
commit 467c6cf307
2 changed files with 6 additions and 0 deletions

View File

@ -1 +1,2 @@
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += periph_gpio periph_random periph_cpuid

View File

@ -7,6 +7,7 @@ export CPU_MODEL ?= cc2538nf53
export PREFIX ?= arm-none-eabi-
export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export AR = $(PREFIX)ar
export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
@ -46,6 +47,10 @@ export RESET_FLAGS = $(BINDIR)
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export CXXUWFLAGS +=
export CXXEXFLAGS +=
# 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)
export LINKFLAGS += -specs=nano.specs -lc -lnosys