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
|
@ -116,7 +116,7 @@ classes: $(R_OBJ) $(JAVA_OBJ)
|
|||
|
||||
$(BUILDDIR)/$(BINARY): $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $(CPUFEAT_BUILD)/cpu-features.o
|
||||
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map
|
||||
$(call PRINTS,OC $(@F))$(OC) -S -x $@
|
||||
$(call PRINTS,OC $(@F))$(call objcopy,$@,$@)
|
||||
|
||||
$(BINLIB_DIR)/$(BINARY): $(BUILDDIR)/$(BINARY)
|
||||
$(call PRINTS,CP $(BINARY))cp $^ $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue