Generate linker map-file, to better judge space consumption

This commit is contained in:
Henryk Plötz 2012-02-01 04:54:48 +01:00
parent 54d4c31250
commit d60565e021
2 changed files with 3 additions and 2 deletions

1
firmware/.gitignore vendored
View File

@ -1,5 +1,6 @@
*.bin *.bin
*.elf *.elf
*.map
lpc1xxx/memory.ld lpc1xxx/memory.ld
applications/wrapper.c applications/wrapper.c
lcd/allfonts.h lcd/allfonts.h

View File

@ -74,7 +74,7 @@ l0dables: table.c
@cd l0dable && $(MAKE) @cd l0dable && $(MAKE)
clean: clean:
rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex table.c table.h rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex $(OUTFILE).map table.c table.h
for dir in $(SUBDIRS); do \ for dir in $(SUBDIRS); do \
$(MAKE) $(CONFIG_MAKE_PRINTDIRECTORY) -C $$dir clean; \ $(MAKE) $(CONFIG_MAKE_PRINTDIRECTORY) -C $$dir clean; \
done done
@ -111,7 +111,7 @@ $(LD_TEMP):
-@echo "INCLUDE $(LD_SCRIPT)" >> $(LD_TEMP) -@echo "INCLUDE $(LD_SCRIPT)" >> $(LD_TEMP)
$(OUTFILE).elf: $(OBJS) $(SYS_OBJS) $(SUBDIRS) $(LPCFIX) $(LD_TEMP) $(OUTFILE).elf: $(OBJS) $(SYS_OBJS) $(SUBDIRS) $(LPCFIX) $(LD_TEMP)
$(LD) $(LDFLAGS) -T $(LD_TEMP) -o $(OUTFILE).elf $(OBJS) $(LDLIBS) $(LD) $(LDFLAGS) -Map=$(OUTFILE).map -T $(LD_TEMP) -o $(OUTFILE).elf $(OBJS) $(LDLIBS)
-@echo "" -@echo ""
$(SIZE) $(OUTFILE).elf $(SIZE) $(OUTFILE).elf
-@echo "" -@echo ""