From 2382a4d32088009b773f6bbab2ff27aecaf2e7df Mon Sep 17 00:00:00 2001 From: Thomas Eichinger Date: Thu, 13 Nov 2014 16:00:52 +0100 Subject: [PATCH] native: fix Makefiles for OSX --- boards/native/Makefile.include | 7 ++++++- cpu/native/Makefile.include | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/boards/native/Makefile.include b/boards/native/Makefile.include index 1c4f5e963..2bff77b23 100644 --- a/boards/native/Makefile.include +++ b/boards/native/Makefile.include @@ -16,7 +16,12 @@ export AR ?= $(PREFIX)ar export AS ?= $(PREFIX)as export LINK ?= $(PREFIX)gcc export SIZE ?= $(PREFIX)size -export OBJCOPY = $(PREFIX)objcopy +ifneq ($(shell uname -s),Darwin) +export OBJCOPY ?= $(PREFIX)objcopy +else +export OBJCOPY ?= $(PREFIX)gobjcopy +export OFLAGS ?= -O ihex +endif export DEBUGGER = gdb export TERMPROG = $(ELF) diff --git a/cpu/native/Makefile.include b/cpu/native/Makefile.include index ab8277f48..b77487230 100644 --- a/cpu/native/Makefile.include +++ b/cpu/native/Makefile.include @@ -1,2 +1,2 @@ export NATIVEINCLUDES += -I$(RIOTCPU)/native/include -I$(RIOTBASE)/sys/include -export USEMODULE += periph drivers +export USEMODULE += periph