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:
Thomas Martitz 2012-04-04 21:43:22 +02:00
parent a54072e299
commit 4b56ee048a
16 changed files with 30 additions and 35 deletions

View file

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