Merge pull request #11627 from cladmi/pr/native/toolchain_duplication
boards/native: remove toolchain variables duplication
This commit is contained in:
commit
413c6d15e7
@ -7,33 +7,6 @@ export CPU = native
|
||||
|
||||
USEMODULE += native-drivers
|
||||
|
||||
# toolchain:
|
||||
export PREFIX =
|
||||
export CC ?= $(PREFIX)gcc
|
||||
export CXX ?= $(PREFIX)g++
|
||||
|
||||
ifeq ($(LTO),1)
|
||||
export AR = $(PREFIX)gcc-ar
|
||||
else
|
||||
export AR = $(PREFIX)ar
|
||||
endif
|
||||
|
||||
export AS ?= $(PREFIX)as
|
||||
export LINK ?= $(PREFIX)gcc
|
||||
export SIZE ?= $(PREFIX)size
|
||||
|
||||
ifneq ($(shell uname -s),Darwin)
|
||||
export OBJCOPY ?= $(PREFIX)objcopy
|
||||
else
|
||||
ifeq (0,$(shell which gobjcopy 2>&1 > /dev/null ; echo $$?))
|
||||
export OBJCOPY ?= gobjcopy
|
||||
else
|
||||
# If gobjcopy is not available, just do nothing. The hexfile
|
||||
# is not used for native anyways.
|
||||
export OBJCOPY ?= true
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
DEBUGGER ?= lldb
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user