Add eeprom driver and command loop
[fw/altos] / check-stack
1 #!/bin/sh
2 HEADER=$1
3 MEM=$2
4
5 HEADER_STACK=`awk '/#define AO_STACK_START/ {print $3}' $HEADER`
6 MEM_STACK=`awk '/Stack starts at/ {print $4}' $MEM`
7
8 if [ "$HEADER_STACK" != "$MEM_STACK" ]; then
9         echo "Set AO_STACK_START to $MEM_STACK"
10         exit 1
11 else
12         exit 0
13 fi