From 3d73e84ad67b2c245e1ad7f6701af81af1382ed0 Mon Sep 17 00:00:00 2001
From: Oleg Hahm <oleg@hobbykeller.org>
Date: Fri, 11 Oct 2013 15:08:54 +0200
Subject: [PATCH] get flags for objcopy from platform dependent includes

---
 Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.include b/Makefile.include
index 983297c637..d06681a1be 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -53,7 +53,7 @@ ifeq ($(BUILDOSXNATIVE),1)
 else
 	@$(LINK) $(UNDEF) -o $(PROJBINDIR)/$(PROJECT).elf -Wl,--start-group $(BASELIBS) -lm -Wl,--end-group  -Wl,-Map=$(PROJBINDIR)/$(PROJECT).map $(LINKFLAGS) 
 	@$(SIZE) $(PROJBINDIR)/$(PROJECT).elf
-	@$(OBJCOPY) -O ihex $(PROJBINDIR)/$(PROJECT).elf $(PROJBINDIR)/$(PROJECT).hex
+	@$(OBJCOPY) $(OFLAGS) $(PROJBINDIR)/$(PROJECT).elf $(PROJBINDIR)/$(PROJECT).hex
 endif
 
 ## your make rules
-- 
GitLab