Merge pull request #11627 from cladmi/pr/native/toolchain_duplication

boards/native: remove toolchain variables duplication
This commit is contained in:
Martine Lenders 2019-06-04 16:39:44 +02:00 committed by GitHub
commit 413c6d15e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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