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.
Add two more patches to the MSP430 toolchain

The two patches both have a 2011-08-22 timestamps and are the following:

  msp430-gcc-4.5.3-20110706-sf3394176
  msp430-gcc-4.5.3-20110706-sf3396639
Update the msp430-binutils tarball

The tar.gz for binutils 2.21.1 was removed and only bz2 is available now. The
contents of the archive incluse an small update of the NEWS and Changelog file.
The relevant email thread about that is here:

  http://sourceware.org/ml/binutils/2011-08/msg00129.html
Refactoring and several improvements and fixes

A quick summary of the changes:

 * avr/msp430/arm are now in platforms/
 * the toolchain directory is now called toolchains
 * the old toolchains are under toolchains-legacy
 * the version number for MSP430 includes the LTS date and the date of the last
   patch applied
 * a few more patches were added to MSP430
 * latest avarice (2.11) and latest avrdude (5.10)
 * mspdebug is now in its own package
 * libc6 dependencies were added were needed
Create packages/all and cleanup veryclean for avr/*/build.sh

The creation of the dummy packages fails if the packages/all does not exists.
This change also splits the remove from veryclean for avr/toolchain and
avr/toolchain-legacy in two parts to keep the lines short.
Fix the loop for removing empty directories

This new version avoids the error messages present in the old version.
Add one more patch to MSP430 gcc

This adds sp430-gcc-4.5.3-20110706-sf3409864.patch which fixes an issue args
being overwritten after call involving int64.