Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msp430: Add newlib support #4766

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash fix building on old toolchain
  • Loading branch information
Joakim Nohlgård committed Jun 27, 2016
commit faf627ef07eabeeb447897c477b5bcf4dd7b9c1e
8 changes: 2 additions & 6 deletions cpu/Makefile.include.msp430_common
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export ASFLAGS += $(CFLAGS_CPU) --defsym $(CPU_MODEL)=1 $(CFLAGS_DBG)
# export linker flags
export LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -static -lgcc

export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts -L$(RIOTCPU)/msp430-common/ldscripts
export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld -Wl,--fatal-warnings

# Import all toolchain settings
include $(RIOTCPU)/Makefile.include.$(TOOLCHAIN)

Expand Down Expand Up @@ -46,9 +43,8 @@ ifeq (1,$(MSP430_USE_NEWLIB))
# use newlib as libc
export USEMODULE += newlib

# Some compatibility definitions for using the TI provided ldscripts with RIOT's
# newlib syscalls.c
CFLAGS_MEMMAP = -D_sheap=end -D_eheap=__stack -D_end=end
export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts -L$(RIOTCPU)/msp430-common/ldscripts
export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld -Wl,--fatal-warnings

# use the nano-specs of Newlib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
Expand Down