From 4b56ee048a950eb8190abec3f8dc8b7a9b6e8946 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 4 Apr 2012 21:43:22 +0200 Subject: 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 --- apps/plugins/plugins.make | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps/plugins/plugins.make') diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index b80523d..27bc69f 100644 --- a/apps/plugins/plugins.make +++ b/apps/plugins/plugins.make @@ -120,13 +120,7 @@ $(BUILDDIR)/%.rock: $(filter %.o, $^) \ $(filter %.a, $+) \ -lgcc $(PLUGINLDFLAGS) -ifndef APP_TYPE - $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ # objcopy native -else ifeq (,$(findstring sdl-sim,$(APP_TYPE))) - $(SILENT)$(OC) -S -x $(BUILDDIR)/$*.elf $@ # objcopy hosted -else - $(SILENT)cp $(BUILDDIR)/$*.elf $@ # no objcopy, keep debug symbols -endif + $(SILENT)$(call objcopy,$(BUILDDIR)/$*.elf,$@) $(BUILDDIR)/apps/plugins/%.lua: $(ROOTDIR)/apps/plugins/%.lua $(call PRINTS,CP $(subst $(ROOTDIR)/,,$<))cp $< $(BUILDDIR)/apps/plugins/ -- cgit v1.1