Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (13 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/scripts/objsizes

    r821 r1765  
    11#!/bin/sh
    22
    3 printf "%9s %11s %9s %9s %s\n" "text+data" text+rodata rwdata bss filename
    4 find -name '*.o' | sed 's:^\./::' | xargs size | grep '^ *[0-9]' \
    5 | while read text data bss dec hex filename; do
     3t_text=0
     4t_data=0
     5t_bss=0
     6
     7printf "%9s %11s %9s %9s %s\n" "text+data" "text+rodata" rwdata bss filename
     8
     9find -name '*.o' | grep -v '^\./scripts/' | grep -vF built-in.o \
     10| sed 's:^\./::' | xargs "${CROSS_COMPILE}size" | grep '^ *[0-9]' \
     11| {
     12while read text data bss dec hex filename; do
     13    t_text=$((t_text+text))
     14    t_data=$((t_data+data))
     15    t_bss=$((t_bss+bss))
    616    printf "%9d %11d %9d %9d %s\n" $((text+data)) $text $data $bss "$filename"
    7 done \
    8 | sort
     17done
     18printf "%9d %11d %9d %9d %s\n" $((t_text+t_data)) $t_text $t_data $t_bss "TOTAL"
     19} | sort -r
Note: See TracChangeset for help on using the changeset viewer.