mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05: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
|
|
@ -220,10 +220,10 @@ $(BUILDDIR)/rombox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LIN
|
|||
-T$(LINKROM) -Wl,-Map,$(BUILDDIR)/rombox.map
|
||||
|
||||
$(BUILDDIR)/rockbox.bin : $(BUILDDIR)/rockbox.elf
|
||||
$(call PRINTS,OC $(@F))$(OC) $(if $(filter yes, $(USE_ELF)), -S -x, -O binary) $< $@
|
||||
$(call PRINTS,OC $(@F))$(call objcopy,$<,$@)
|
||||
|
||||
$(BUILDDIR)/rombox.bin : $(BUILDDIR)/rombox.elf
|
||||
$(call PRINTS,OC $(@F))$(OC) -O binary $< $@
|
||||
$(call PRINTS,OC $(@F))$(call objcopy,$<,$@)
|
||||
|
||||
#
|
||||
# If there's a flashfile defined for this target (rockbox.ucl for Archos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue