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/imageviewer/imageviewer.make | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/plugins/imageviewer') diff --git a/apps/plugins/imageviewer/imageviewer.make b/apps/plugins/imageviewer/imageviewer.make index 7f7d943..97af1e9 100644 --- a/apps/plugins/imageviewer/imageviewer.make +++ b/apps/plugins/imageviewer/imageviewer.make @@ -40,11 +40,7 @@ $(IMGVBUILDDIR)/%.ovl: $(IMGDEC_OUTLDS) $(filter-out $(PLUGIN_CRT0),$(filter %.o, $^)) \ $(filter %.a, $+) \ -lgcc $(IMGDEC_OVLFLAGS) -ifdef APP_TYPE - $(SILENT)cp $(IMGVBUILDDIR)/$*.elf $@ -else - $(SILENT)$(OC) -O binary $(IMGVBUILDDIR)/$*.elf $@ -endif + $(SILENT)$(call objcopy,$(IMGVBUILDDIR)/$*.elf,$@) # rule to create reference map for image decoder $(IMGVBUILDDIR)/%.refmap: $(APPSDIR)/plugin.h $(IMGVSRCDIR)/imageviewer.h $(PLUGINLINK_LDS) $(PLUGIN_LIBS) -- cgit v1.1