summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/imageviewer.make
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-04-04 21:43:22 +0200
committerThomas Martitz <kugel@rockbox.org>2012-04-04 21:48:19 +0200
commit4b56ee048a950eb8190abec3f8dc8b7a9b6e8946 (patch)
tree5f7275d75c32831531963c6fecf64dbcad250efa /apps/plugins/imageviewer/imageviewer.make
parenta54072e2992ad8b6fccdaf8e8062f37c53743be8 (diff)
downloadrockbox-4b56ee048a950eb8190abec3f8dc8b7a9b6e8946.tar.gz
rockbox-4b56ee048a950eb8190abec3f8dc8b7a9b6e8946.tar.bz2
rockbox-4b56ee048a950eb8190abec3f8dc8b7a9b6e8946.zip
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
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.make')
-rw-r--r--apps/plugins/imageviewer/imageviewer.make6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.make b/apps/plugins/imageviewer/imageviewer.make
index 7f7d94320a..97af1e98a7 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)