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
This commit is contained in:
Thomas Martitz 2012-01-03 21:15:11 +00:00
parent a53d1c6dc5
commit 0bc64a6bb3
3 changed files with 11 additions and 6 deletions

View file

@ -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