From 0bc64a6bb358ae2c5568ec4747d1cea06c42ab59 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 3 Jan 2012 21:15:11 +0000 Subject: 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 --- apps/plugins/plugins.make | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index 41d2307..fca37aa 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 -- cgit v1.1