1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles: Split GDB settings from toolchain

This commit is contained in:
Joakim Nohlgård 2017-10-06 13:51:47 +02:00
parent 7713bede99
commit 0ad0a39a40
3 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,3 @@
export GDBPREFIX ?= $(PREFIX)
export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export CCAS ?= $(CC)
@ -16,4 +15,5 @@ $(warning objcopy not found. Hex file will not be created.)
export OBJCOPY = true
endif
export OBJDUMP = $(PREFIX)objdump
export GDB = $(GDBPREFIX)gdb
# We use GDB for debugging
include $(RIOTMAKE)/tools/gdb.inc.mk

View File

@ -1,4 +1,3 @@
export GDBPREFIX ?= $(PREFIX)
export LLVMPREFIX ?= llvm-
# Apple XCode doesn't prefix its tools with llvm-, but manually installed LLVM
# on OSX might have the llvm- prefix, we can't simply test against uname -s.
@ -25,9 +24,10 @@ export OBJCOPY = true
endif
export OBJDUMP = $(LLVMPREFIX)objdump
export SIZE = $(LLVMPREFIX)size
export GDB = $(GDBPREFIX)gdb
# LLVM lacks a binutils strip tool as well...
#export STRIP = $(LLVMPREFIX)strip
# We use GDB for debugging for now, maybe LLDB will be supported in the future.
include $(RIOTMAKE)/tools/gdb.inc.mk
ifneq (,$(TARGET_ARCH))
# Clang on Linux uses GCC's C++ headers and libstdc++ (installed with GCC)

View File

@ -0,0 +1,2 @@
export GDBPREFIX ?= $(PREFIX)
export GDB ?= $(GDBPREFIX)gdb