[Tinyos-help] problem compiling Blink to telosb platform
Aurélien Francillon
aurelien.francillon at inrialpes.fr
Fri Jun 1 05:12:48 PDT 2007
Le vendredi 01 juin 2007 12:54, Ákos Maróy a écrit :
> Aurélien Francillon wrote:
> > Any chance to have tinyos devs pushing this patch to upstream binutils ?
> > that would be very convenient for everybody ...
> > there have been a discussion on binutils-dev recently
>
> that would be nice. the patch is real small:
>
> --- binutils-2.16/gas/config/tc-msp430.h 2004-08-25
> 14:54:09.000000000 +0200
> +++ binutils-2.16.patched/gas/config/tc-msp430.h 2007-06-01
> 12:23:13.000000000 +0200
> @@ -101,7 +101,7 @@
> example, a value of 2 might print `1234 5678' where a value of 1
> would print `12 34 56 78'. The default value is 4. */
>
> -#define LEX_DOLLAR 0
> +#undef LEX_DOLLAR
> /* MSP430 port does not use `$' as a logical line separator */
>
> #define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
>
> > For gentoo users the patch is included in default gentoo binutils for
> > msp430 version "cross-msp430/binutils-2.16.1-r3", it's provided by gentoo
> > crossdev, (see http://gentoo-wiki.com/HOWTO_Cross_Compile)
>
> I tried to use crossdev with the msp430 target, but it didn't work for
> me - as it's not a 'real' target. can you provide steps on how to go
> about this?
>
> > I would recommend using my gentoo overlay here :
> > https://naurel.org/svn/tinyos-2-overlay
> > It includes a modified crossdev which should install a proper msp430-gcc
> > and msp430-libc, it also includes ebuilds for tinyos-1.x and 2.x ...
>
with the install crossdev from my overlay and then :
crossdev -t msp430
at one point it will stop and warn you to run some script. It will setup some
links such that gcc will find binutils stuff, the stable msp430-gcc is really
old...
> I'm looking at your mspgcc e-build, and I'm not finding the above patch
> for when it build binutils..
binutils is a separate package, the gentoo patchset for binutils includes
this patch already ( version binutils-2.16.* only )
( see
http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.16.1/ )
mspgcc does not needs this patch
cheers
Aurélien
More information about the Tinyos-help
mailing list