Change Details
atusb/fw/Makefile |
1 | 1 | # |
2 | 2 | # Makefile - Makefile of the ATUSB firmware |
3 | 3 | # |
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 |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
... | ... | |
69 | 69 | $(NAME).elf: $(OBJS) |
70 | 70 | $(MAKE) version.o |
71 | 71 | $(CC) $(CFLAGS) -o $@ $(OBJS) version.o |
| 72 | $(SIZE) $@ |
72 | 73 | |
73 | 74 | boot.elf: $(BOOT_OBJS) |
74 | 75 | $(CC) $(CFLAGS) -o $@ $(BOOT_OBJS) \ |
75 | 76 | -Wl,--section-start=.text=$(BOOT_ADDR) |
| 77 | $(SIZE) $@ |
76 | 78 | |
77 | 79 | %.bin: %.elf |
78 | 80 | $(BUILD) $(OBJCOPY) -j .text -j .data -O binary $< $@ |
... | ... | |
80 | 82 | |
81 | 83 | %.hex: %.elf |
82 | 84 | $(BUILD) $(OBJCOPY) -j .text -j .data -O ihex $< $@ |
83 | | $(SIZE) $@ |
| 85 | @echo "Size: `$(SIZE) -A boot.hex | sed '/Total */s///p;d'` B" |
84 | 86 | |
85 | 87 | # ----- Cleanup --------------------------------------------------------------- |
86 | 88 | |
Download the corresponding diff file