mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
a53d1c6dc5
commit
0bc64a6bb3
3 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue