/opt/tinyos-2.x/contrib/SynapseNetProg/utils/createSynapseInfoXml.sh
test -d build || mkdir build
test -d build/telosb || mkdir build/telosb
echo "#define APPLICATION_ID $(xmlstarlet sel -t -m  "//Application" -v "@id" synapse-info.xml) " > build/telosb/application.h
echo "#warning APPLICATION_ID=$(xmlstarlet sel -t -m  "//Application" -v "@id" synapse-info.xml) " >> build/telosb/application.h
mkdir -p build/telosb
    compiling SyNaPseC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wl,--section-start=.text=0x5000,--defsym=_reset_vector__=0x4000 -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DREAL_EPROM -DSNP_PKT_COUNT -DLOADABLE -DCC2420_DEF_CHANNEL=15 -I../ -I../SynapseBootloader -I../SynapseFlashManager -DCHECK_BLOCK_CRC -I/opt/tinyos-2.x/tos/lib/printf -DIDENT_APPNAME=\"SyNaPseC\" -DIDENT_USERNAME=\"crepric\" -DIDENT_HOSTNAME=\"crepricVM\" -DIDENT_USERHASH=0x568561beL -DIDENT_TIMESTAMP=0x4acd6934L -DIDENT_UIDHASH=0x578fcec0L -I/opt/tinyos-2.x/contrib/SynapseNetProg/ -I/opt/tinyos-2.x/contrib/SynapseNetProg/SynapseBootloader/binaries  SyNaPseC.nc -lm 
In file included from SyNaPseP.nc:33:
../SynapseBootloader/bootloader.h:75:2: warning: #warning The bootloader assumes that the Golden Image will be at most 40000 bytes
SyNaPseP.nc:95:2: warning: #warning LOADABLE flag is turned on
SyNaPseP.nc:945:2: warning: #warning CHECK_BLOCK_CRC enabled
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
Synapse_CodecP.nc:62:2: warning: #warning SYMBOLS_PER_BLOCK 32
In file included from ../SynapseFlashManager/SerialFlashManagerC.nc:45,
                 from SyNaPseC.nc:118:
In component `SerialFlashManagerP':
../SynapseFlashManager/SerialFlashManagerP.nc: In function `BlockWrite.writeDone':
../SynapseFlashManager/SerialFlashManagerP.nc:319: warning: assignment from incompatible pointer type
../SynapseFlashManager/SerialFlashManagerP.nc: In function `CommandReceive.receive':
../SynapseFlashManager/SerialFlashManagerP.nc:356: warning: `return' with no value, in function returning non-void
../SynapseFlashManager/SerialFlashManagerP.nc:360: warning: `return' with no value, in function returning non-void
../SynapseFlashManager/SerialFlashManagerP.nc:365: warning: `return' with no value, in function returning non-void
../SynapseFlashManager/SerialFlashManagerP.nc: In function `SerialFlashManagerP$read_table':
../SynapseFlashManager/SerialFlashManagerP.nc:467: warning: unused variable `err'
../Synapse_PartitionStorageP.nc: In function `Synapse_PartitionStorageP$FlashRead$readDone':
../Synapse_PartitionStorageP.nc:444: warning: unused variable `j'
../Synapse_PartitionStorageP.nc:444: warning: unused variable `i'
../SynapseFlashManager/SerialFlashManagerP.nc: In function `SerialFlashManagerP$BlockWrite$writeDone':
../SynapseFlashManager/SerialFlashManagerP.nc:319: warning: assignment from incompatible pointer type
SyNaPseP.nc: In function `SyNaPseP$BlockRead$readDone':
SyNaPseP.nc:1132: warning: large integer implicitly truncated to unsigned type
SyNaPseP.nc: In function `SyNaPseP$AdvSend$sendDone':
SyNaPseP.nc:862: warning: unused variable `tmp'
../SynapseFlashManager/SerialFlashManagerP.nc: In function `SerialFlashManagerP$CommandReceive$receive':
../SynapseFlashManager/SerialFlashManagerP.nc:356: warning: `return' with no value, in function returning non-void
../SynapseFlashManager/SerialFlashManagerP.nc:360: warning: `return' with no value, in function returning non-void
../SynapseFlashManager/SerialFlashManagerP.nc:365: warning: `return' with no value, in function returning non-void
SyNaPseP.nc: In function `SyNaPseP$Synapse_Radio$receiveBlockDone':
SyNaPseP.nc:947: warning: large integer implicitly truncated to unsigned type
../Synapse_PartitionStorageP.nc: In function `Synapse_PartitionStorageP$Boot$booted':
../Synapse_PartitionStorageP.nc:141: warning: unused variable `j'
    compiled SyNaPseC to build/telosb/main.exe
           34624 bytes in ROM
            5752 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex
    writing TOS image
