summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-10-30 01:40:20 +0000
committerJens Arnold <amiconn@rockbox.org>2006-10-30 01:40:20 +0000
commitf40f0debcbada2ef635872b9c4d352b7416bf721 (patch)
treef7c6aabd42e602f0e33f2389fbf752c6abab0f7e /bootloader
parent5421e8696906cda6416d089d5f387bb38a147ee2 (diff)
downloadrockbox-f40f0debcbada2ef635872b9c4d352b7416bf721.tar.gz
rockbox-f40f0debcbada2ef635872b9c4d352b7416bf721.tar.bz2
rockbox-f40f0debcbada2ef635872b9c4d352b7416bf721.zip
Adapted more Makefiles to the more efficient info printing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11390 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/bootloader/Makefile b/bootloader/Makefile
index 46a056ceb2..134187d521 100644
--- a/bootloader/Makefile
+++ b/bootloader/Makefile
@@ -50,35 +50,30 @@ endif
dep: $(DEPFILE)
$(LINKFILE): $(LDS)
- @echo "Build LDS file"
- @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
+ $(call PRINTS,Build $(@F))cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - >$@
$(MAXOUTFILE):
- @echo '#include "config.h"' > $(MAXINFILE)
- @echo "ROM_START" >> $(MAXINFILE)
- @cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
- @rm $(MAXINFILE)
+ $(SILENT)echo '#include "config.h"' > $(MAXINFILE)
+ $(SILENT)echo "ROM_START" >> $(MAXINFILE)
+ $(SILENT)cat $(MAXINFILE) | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P $(ROMBUILD) - > $(MAXOUTFILE)
+ $(SILENT)rm $(MAXINFILE)
$(OBJDIR)/bootloader.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
- @echo "LD bootloader.elf"
- $(SILENT)$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
+ $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootloader.map
$(OBJDIR)/bootloader.bin : $(OBJDIR)/bootloader.elf
- @echo "OBJCOPY $<"
- $(SILENT)$(OC) -O binary $< $@
+ $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
$(OBJDIR)/bootloader.asm: $(OBJDIR)/bootloader.bin
$(TOOLSDIR)/sh2d -sh1 $< > $@
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootloader.bin
- @echo "Build bootloader file"
- $(SILENT)$(MKFIRMWARE) $< $@
+ $(call PRINTS,Build bootloader file)$(MKFIRMWARE) $< $@
include $(TOOLSDIR)/make.inc
clean:
- @echo "cleaning bootloader"
- @-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootloader.asm \
+ $(call PRINTS,cleaning bootloader)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootloader.asm \
$(OBJDIR)/bootloader.bin $(OBJDIR)/bootloader.elf $(OBJDIR)/*.map \
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE)