summaryrefslogtreecommitdiffstats
path: root/flash/bootbox
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 /flash/bootbox
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 'flash/bootbox')
-rw-r--r--flash/bootbox/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/flash/bootbox/Makefile b/flash/bootbox/Makefile
index 7a58749c07..7391f3c4fe 100644
--- a/flash/bootbox/Makefile
+++ b/flash/bootbox/Makefile
@@ -42,39 +42,33 @@ all: $(BUILDDIR)/$(BINARY) $(FLASHFILE)
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)/bootbox.elf : $(OBJS) $(LINKFILE) $(DEPFILE) $(LIBROCKBOX)
- @echo "LD bootbox.elf"
- $(CC) $(GCCOPTS) -Wl,--gc-sections -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootbox.map
+ $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Wl,--gc-sections -Os -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -L$(BUILDDIR)/firmware -lrockbox -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/bootbox.map
$(OBJDIR)/bootbox.bin : $(OBJDIR)/bootbox.elf
- @echo "OBJCOPY $<"
- @$(OC) -O binary $< $@
+ $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
$(OBJDIR)/bootbox.asm: $(OBJDIR)/bootbox.bin
$(TOOLSDIR)/sh2d -sh1 $< > $@
$(BUILDDIR)/$(BINARY) : $(OBJDIR)/bootbox.bin
- @echo "Build bootbox file"
- @$(MKFIRMWARE) $< $@
+ $(call PRINTS,Build bootbox file)$(MKFIRMWARE) $< $@
$(FLASHFILE): $(OBJDIR)/bootbox.bin
- $(SILENT)(echo "UCLPACK bootbox" ; \
- $(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;)
+ $(call PRINTS,UCLPACK bootbox)$(TOOLSDIR)/uclpack --best --2e $< $@ >/dev/null 2>&1;
include $(TOOLSDIR)/make.inc
clean:
- @echo "cleaning bootbox"
- @-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootbox.asm $(OBJDIR)/rockbox.ucl \
+ $(call PRINTS,cleaning bootbox)-rm -f $(OBJS) $(BUILDDIR)/$(BINARY) $(OBJDIR)/bootbox.asm $(OBJDIR)/rockbox.ucl \
$(OBJDIR)/bootbox.bin $(OBJDIR)/bootbox.elf $(OBJDIR)/*.map \
$(LINKFILE) $(MAXOUTFILE) $(DEPFILE) $(FLASHFILE)