From 4b56ee048a950eb8190abec3f8dc8b7a9b6e8946 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 4 Apr 2012 21:43:22 +0200 Subject: Refactor and unify objcopy calls in the build system. Also now properly handles DEBUG builds on hosted targets to keep debug symbols if necessary. Change-Id: I884031b79c6d49479e4d95752f35ced68872dd5d --- apps/plugins/chessbox/chessbox.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/chessbox/chessbox.make') diff --git a/apps/plugins/chessbox/chessbox.make b/apps/plugins/chessbox/chessbox.make index 357130cb74..ee4940de8b 100644 --- a/apps/plugins/chessbox/chessbox.make +++ b/apps/plugins/chessbox/chessbox.make @@ -44,7 +44,7 @@ $(CHESSBOX_OBJDIR)/chessbox.ovl: $(CHESSBOX_OBJ) $(CHESSBOX_OUTLDS) $(filter %.o, $^) \ $(filter %.a, $+) \ -lgcc $(CHESSBOX_OVLFLAGS) - $(call PRINTS,LD $(@F))$(OC) -O binary $(basename $@).elf $@ + $(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@) # special pattern rule for compiling chessbox with extra flags $(CHESSBOX_OBJDIR)/%.o: $(CHESSBOX_SRCDIR)/%.c $(CHESSBOX_SRCDIR)/chessbox.make -- cgit v1.2.3