diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-04-04 21:43:22 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-04-04 21:48:19 +0200 |
commit | 4b56ee048a950eb8190abec3f8dc8b7a9b6e8946 (patch) | |
tree | 5f7275d75c32831531963c6fecf64dbcad250efa /apps/codecs/codecs.make | |
parent | a54072e2992ad8b6fccdaf8e8062f37c53743be8 (diff) | |
download | rockbox-4b56ee048a950eb8190abec3f8dc8b7a9b6e8946.tar.gz rockbox-4b56ee048a950eb8190abec3f8dc8b7a9b6e8946.zip |
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
Diffstat (limited to 'apps/codecs/codecs.make')
-rw-r--r-- | apps/codecs/codecs.make | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/codecs/codecs.make b/apps/codecs/codecs.make index f2d2f13794..3e4ec3aa5f 100644 --- a/apps/codecs/codecs.make +++ b/apps/codecs/codecs.make @@ -202,10 +202,4 @@ $(CODECDIR)/%.codec: $(CODECDIR)/%.o $(filter %.o, $^) \ $(filter %.a, $+) \ -lgcc $(CODECLDFLAGS) -ifndef APP_TYPE - $(SILENT)$(OC) -O binary $(CODECDIR)/$*.elf $@ # objcopy native -else ifeq (,$(findstring sdl-sim,$(APP_TYPE))) - $(SILENT)$(OC) -S -x $(CODECDIR)/$*.elf $@ # objcopy hosted -else - $(SILENT)cp $(CODECDIR)/$*.elf $@ # no objcopy, keep debug symbols -endif + $(SILENT)$(call objcopy,$(CODECDIR)/$*.elf,$@) |