toolchain: increased tinyos-tools version to 1.4.1

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5923 285f258d-8064-b571-fbc6-9656dc998e90
rf212: timesync corrected (restored from earlier version)

Author: Andras Biro <bbandi86@gmail.com>
Signed-off-by: Miklos Maroti <mmaroti@isis.vanderbilt.edu>

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5924 285f258d-8064-b571-fbc6-9656dc998e90
rf212: reset if the chip doesn't turn on correctly

Author: Andras Biro <bbandi86@gmail.com>
Signed-off-by: Miklos Maroti <mmaroti@isis.vanderbilt.edu>

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5925 285f258d-8064-b571-fbc6-9656dc998e90
tinyos-tools: let autoconfig search for python2 (works for systems where python3 is the default)

Author: Andras Biro <bbandi86@gmail.com>
Signed-off-by: Miklos Maroti <mmaroti@isis.vanderbilt.edu>

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5926 285f258d-8064-b571-fbc6-9656dc998e90
Fixed a bug in the ADC code reported by Cyiu Chau: when the ADC was accessed via DMA the buffer swapping for multiple buffers was not working correctly.

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5928 285f258d-8064-b571-fbc6-9656dc998e90
Last commit (bugfix for ADC when used with DMA) was incomplete - should be fixed now.

git-svn-id: http://tinyos-main.googlecode.com/svn/trunk@5929 285f258d-8064-b571-fbc6-9656dc998e90
Add packages for nesc, MSP430 and AVR

The versions are the following:

  - nesc: 1.3.3
  - MSP430 binutils: 2.17
  - MSP430 gcc: 3.2.3
  - MSP430 libc: CVS snapshot from 2006 (patched)
  - AVR bintils: 2.17 (patched)
  - AVR gcc: 4.1.2 (patched)
  - AVR libs: 1.4.7 (patched)

Each package comes with a build.sh script that can either build a deb package
in $TOSROOT/packages or install locally in $TOSROOT/local.
Add the new MSP430 toolchain

The new versions are the following:

  - MSP430 binutils: 2.21.1 (patched)
  - MSP430 gcc: 4.5.3 (pacthed)
  - MSP430 libc/mcu: snapshot from 2011-07-16

Note: the names of the packages collide with the old ones.
Add the CodeSourcery 2011.03-42 ARM toolchain

The ARM toolchain is following Sourcery CodeBench Lite Edition:
  http://www.codesourcery.com/sgpp/lite/arm/portal/release1802

The build script only compiles binutils, gcc and the newlib. The upstream
version used are the following:

  - binutils: 2.20.51.20100809
  - gcc: 4.5.2
  - newlib: 1.18.0 + additions from CVS up to 2010-08-12

I haven't checked but I presume that the tarballs contains the some
contributions from Code Sourcery.
Add the libgmp, libmpfr and libmpc dependencies

The GCC for MSP430 and ARM requires these libraries. A way to get rid of these
dependencies would be to compile them as part of the build process and link
against them statically.
Add the new AVR toolchain

The versions included are the following:

  - AVR bintils: 2.17 (patched)
  - AVR gcc: 4.1.2 (patched)
  - AVR libc: 1.6.7

The only change in version is for libc (was 1.4.7). The patches for binutils
and gcc but the patches are also different.
Add MPFR, GMP and MPC to the MSP430 toolchain

Using specific versions for MPFR, GMP and MPC makes the gcc not to depend on
the system-wide versions. The build is more hermetic this way and allows the
same deb packet to be used on both Ubuntu Lucid and Debian Squeeze.

The versions used are the following:

  - mpfr: 2.4.2
  - gmp: 4.3.2
  - mpc: 0.8.1

These are the oldest versions recommended for gcc 4.5.
Add MPFR, GMP and MPC to the ARM toolchain

This is an attempt to replicate more accurately the CodeSourcery binaries by
using the provided MPFR, GMP and MPC instead of the system-wide ones.
Remove the libgmp, libmpfr and libmpc dependencies

We don't need these dependencies anymore.
Add env script to setup the environment

The env is a shell snippet that sets some of the environment variables used by
tinyos. The snippet is supposed to be sourced from the TOSROOT directory.
Add the msp43-tinyos package and the latest patches to MSP430

After the MSP430 20110716 release a bunch of patches were created to fix
several bugs. This change applies all the current ones. The patches are the
following:

  msp430-binutils-2.21.1-20110716-sf3143071.patch
  msp430-binutils-2.21.1-20110716-sf3379341.patch
  msp430-binutils-2.21.1-20110716-sf3386145.patch
  msp430-gcc-4.5.3-20110706-sf3370978.patch
  msp430-gcc-4.5.3-20110706-sf3390964.patch
  msp430-libc-20110612-sf3387164.patch
  msp430mcu-20110613-sf3379189.patch
  msp430mcu-20110613-sf3384550.patch

This change also addes the msp430-tinyos package that pulls in all the other
msp430 packages.
Fix and simplify the clean and veryclean for msp430

Properly clean after the gpm, mpfr and mpc and also simplify the clean and
veryclean.
Add the avr-tinyos package

avr-tinyos is a dummy package that makes it easy to pull in all the avr
packages. A way to uninstall the package together with its dependencies is
"apt-get autoinstall avr-tinyos".
Add GDB to the MSP430 toolchain

The gdb version used is 7.2.
Add the mspdebug-tinyos package

The version used is 0.16.