File: buildset.sh

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (30 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PLATFORM=${PLATFORM:-tmote}
echo "ROM and RAM sizes:"
for prec in Second Milli 32khz ; do
  for mux in 0 1 ; do
    for alarms in 1 2 3 4 5 6 7 8; do
      echo -n "prec=${prec} mux=${mux} alarms=${alarms}"
      make ${PLATFORM} usemux,${mux} alarms,${alarms} useleds,0 useprec,${prec} \
        2>&1 | sed \
         -e '1,/compiled TestAppC to/d' \
         -e '/^msp430-objcopy/,$d' \
	 -e 's@bytes in.*$@@' \
        | paste -s -
      mv -f build/${PLATFORM}/app.c build/${PLATFORM}/app-m${mux}-a${alarms}.c >/dev/null 2>&1
    done
  done
  if [ Milli = "${prec}" ] ; then
    for alarms in 1 2 3 4 5 6 7 8; do
      echo -n "prec=${prec} timers=${alarms}"
      make ${PLATFORM} usetimer,1 alarms,${alarms} useleds,0 useprec,${prec} \
        2>&1 | sed \
         -e '1,/compiled TestAppC to/d' \
         -e '/^msp430-objcopy/,$d' \
	 -e 's@bytes in.*$@@' \
        | paste -s -
      mv -f build/${PLATFORM}/app.c build/${PLATFORM}/app-timer-a${alarms}.c >/dev/null 2>&1

    done
  fi
done