From 9c5688ea277a8a70a0e6e3985a885da2f0683a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 4 Jun 2019 15:26:17 +0200 Subject: [PATCH] boards/native: remove toolchain variables duplication The toolchain variables were overwritten anyway in `makefiles/toolchain/gnu|llvm.inc.mk` as they use `=` affectation, except for `OBJCOPY`. On my Linux ubuntu bionic machine, the only difference for `info-build` with both gnu/llvm and also with LTO=1 is that it now uses an absolute path for `objcopy` -OBJCOPY: objcopy +OBJCOPY: /usr/bin/objcopy On the OSX 17.7.0 I tested, there was no difference. --- boards/native/Makefile.include | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/boards/native/Makefile.include b/boards/native/Makefile.include index 9ee94c3eb3..2e065f0864 100644 --- a/boards/native/Makefile.include +++ b/boards/native/Makefile.include @@ -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