mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -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
|
|
@ -45,7 +45,7 @@ $(ZXBOX_OBJDIR)/zxbox.ovl: $(ZXBOX_OBJ) $(ZXBOX_OUTLDS)
|
|||
$(filter %.o, $^) \
|
||||
$(filter %.a, $+) \
|
||||
-lgcc $(ZXBOX_LDFLAGS)
|
||||
$(call PRINTS,LD $(@F))$(OC) -O binary $(basename $@).elf $@
|
||||
$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
|
||||
|
||||
# special pattern rule for compiling zxbox with extra flags
|
||||
$(ZXBOX_OBJDIR)/%.o: $(ZXBOX_SRCDIR)/%.c $(ZXBOX_SRCDIR)/zxbox.make
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue