Date:2013-07-24 22:18:33 (10 years 8 months ago)
Author:Werner Almesberger
Commit:0706773e38d6cb1b85676a25738f90740a27af42
Message:atusb/fw/Makefile: improve size reporting (show segment sizes)

Files: atusb/fw/Makefile (3 diffs)

Change Details

atusb/fw/Makefile
11#
22# Makefile - Makefile of the ATUSB firmware
33#
4# Written 2010-2011 by Werner Almesberger
5# Copyright 2010-2011 by Werner Almesberger
4# Written 2010-2011, 2013 by Werner Almesberger
5# Copyright 2010-2011, 2013 by Werner Almesberger
66#
77# This program is free software; you can redistribute it and/or modify
88# it under the terms of the GNU General Public License as published by
...... 
6969$(NAME).elf: $(OBJS)
7070        $(MAKE) version.o
7171        $(CC) $(CFLAGS) -o $@ $(OBJS) version.o
72        $(SIZE) $@
7273
7374boot.elf: $(BOOT_OBJS)
7475        $(CC) $(CFLAGS) -o $@ $(BOOT_OBJS) \
7576          -Wl,--section-start=.text=$(BOOT_ADDR)
77        $(SIZE) $@
7678
7779%.bin: %.elf
7880        $(BUILD) $(OBJCOPY) -j .text -j .data -O binary $< $@
...... 
8082
8183%.hex: %.elf
8284        $(BUILD) $(OBJCOPY) -j .text -j .data -O ihex $< $@
83        $(SIZE) $@
85        @echo "Size: `$(SIZE) -A boot.hex | sed '/Total */s///p;d'` B"
8486
8587# ----- Cleanup ---------------------------------------------------------------
8688

Archive Download the corresponding diff file



interactive