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