summaryrefslogtreecommitdiffstats
path: root/apps/plugins/plugins.make
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-03 21:15:11 +0000
committerThomas Martitz <kugel@rockbox.org>2012-01-03 21:15:11 +0000
commit0bc64a6bb358ae2c5568ec4747d1cea06c42ab59 (patch)
tree6c0d37e84a89c59e82378ffe3ed1c11625533f64 /apps/plugins/plugins.make
parenta53d1c6dc509dd749cdf2d0767dccea9a3406e00 (diff)
downloadrockbox-0bc64a6bb358ae2c5568ec4747d1cea06c42ab59.tar.gz
rockbox-0bc64a6bb358ae2c5568ec4747d1cea06c42ab59.tar.bz2
rockbox-0bc64a6bb358ae2c5568ec4747d1cea06c42ab59.zip
Adjust a few makefiles to generate smaller (upto 80%) binaries on RaaA through
stripping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31541 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r--apps/plugins/plugins.make8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make
index 41d2307682..fca37aa763 100644
--- a/apps/plugins/plugins.make
+++ b/apps/plugins/plugins.make
@@ -118,10 +118,12 @@ $(BUILDDIR)/%.rock:
$(filter %.o, $^) \
$(filter %.a, $+) \
-lgcc $(PLUGINLDFLAGS)
-ifdef APP_TYPE
- $(SILENT)cp $(BUILDDIR)/$*.elf $@
+ifndef APP_TYPE
+ $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ # objcopy native
+else ifeq (,$(findstring sdl-sim,$(APP_TYPE)))
+ $(SILENT)$(OC) -S -x $(BUILDDIR)/$*.elf $@ # objcopy hosted
else
- $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@
+ $(SILENT)cp $(BUILDDIR)/$*.elf $@ # no objcopy, keep debug symbols
endif
$(BUILDDIR)/apps/plugins/%.lua: $(ROOTDIR)/apps/plugins/%.lua