File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ $(OBJDIR)/$(IMGNAME).size: $(OBJDIR)/$(IMGNAME).elf
365
365
$(V )$(SIZE ) -Bd $(OFILES ) >> $@
366
366
$(V ) if [ " $( SIZES) " -ge 1 ]; then $(SIZE ) -AC $(OBJDIR ) /$(IMGNAME ) .elf; fi
367
367
368
+
368
369
# .lss from .elf (extended listing)
369
370
% .lss : % .elf
370
371
@echo " $( HLV) G $@ $( HLO) "
@@ -382,9 +383,12 @@ $(OBJDIR)/$(IMGNAME).size: $(OBJDIR)/$(IMGNAME).elf
382
383
383
384
# .hex/.srec/.bin from .elf
384
385
OBJCOPYIMG := $(OBJCOPY ) # -j .text -j .data
385
- %.hex: %.elf
386
+
387
+ % .hex : % .elf $(FFDIR ) /tools/checksize.awk
386
388
@echo " $( HLV) G $@ $( HLO) "
387
389
$(V )$(OBJCOPYIMG ) -O ihex $< $@
390
+ $(V )$(SIZE ) -AC $< | $(AWK ) -f $(FFDIR ) /tools/checksize.awk
391
+
388
392
% .srec : % .elf
389
393
@echo " $( HLV) G $@ $( HLO) "
390
394
$(V )$(OBJCOPYIMG ) -O srec $< $@
Original file line number Diff line number Diff line change
1
+ BEGIN { error = 0 ; }
2
+ /% Full / {
3
+ match ($$0 , /^ (. + ):. + \( ([0 -9 ]+ \. [0 -9 ]+ )% Full\) /, a);
4
+ if (a[ 2 ] > 100.0 )
5
+ {
6
+ print (" Too much " $0 );
7
+ error++ ;
8
+ }
9
+ }
10
+ END {
11
+ exit (error ? 1 : 0 );
12
+ }
You can’t perform that action at this time.
0 commit comments