forked from len0rd/rockbox
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
|
@ -40,11 +40,7 @@ $(IMGVBUILDDIR)/%.ovl: $(IMGDEC_OUTLDS)
|
|||
$(filter-out $(PLUGIN_CRT0),$(filter %.o, $^)) \
|
||||
$(filter %.a, $+) \
|
||||
-lgcc $(IMGDEC_OVLFLAGS)
|
||||
ifdef APP_TYPE
|
||||
$(SILENT)cp $(IMGVBUILDDIR)/$*.elf $@
|
||||
else
|
||||
$(SILENT)$(OC) -O binary $(IMGVBUILDDIR)/$*.elf $@
|
||||
endif
|
||||
$(SILENT)$(call objcopy,$(IMGVBUILDDIR)/$*.elf,$@)
|
||||
|
||||
# rule to create reference map for image decoder
|
||||
$(IMGVBUILDDIR)/%.refmap: $(APPSDIR)/plugin.h $(IMGVSRCDIR)/imageviewer.h $(PLUGINLINK_LDS) $(PLUGIN_LIBS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue