mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
a54072e299
commit
4b56ee048a
16 changed files with 30 additions and 35 deletions
|
@ -120,13 +120,7 @@ $(BUILDDIR)/%.rock:
|
|||
$(filter %.o, $^) \
|
||||
$(filter %.a, $+) \
|
||||
-lgcc $(PLUGINLDFLAGS)
|
||||
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)cp $(BUILDDIR)/$*.elf $@ # no objcopy, keep debug symbols
|
||||
endif
|
||||
$(SILENT)$(call objcopy,$(BUILDDIR)/$*.elf,$@)
|
||||
|
||||
$(BUILDDIR)/apps/plugins/%.lua: $(ROOTDIR)/apps/plugins/%.lua
|
||||
$(call PRINTS,CP $(subst $(ROOTDIR)/,,$<))cp $< $(BUILDDIR)/apps/plugins/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue