Date:2013-07-24 22:18:33 (6 years 3 months ago)
Author:Werner Almesberger
Commit:a9d502850ade0118b4317b7d539d3993cd717671
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