DEVELOPERS, read to end.....

Ha, you must have sent that response while I was in the process of writing
my last email.....

So what are you doing right now to get the make system to recognize your
platform?  Are you putting your ecosensory.target file directly in the
tinyos-2.x/support/make/ directory or are you using TOSMAKE_PATH so that you
can put it somewhere like tinyos-2.x-contribs/ecosensory/support/make?  You
should be doing the latter if you aren't already......

Until now, there has been no standard way setting up a new platform in
contrib for mixed compilation with components in the standard tinyos tree.
People have done various different things, but I think its time to come up
with some sort of standardized process.

I like the idea of using a %C directive as a shorthand for finding the
contrib directory.  Given that contrib is starting in its number of users,
having such a feature would be nice.  To make this happen, we first need to
decide on a standard environment variable that users of contrib must
define.  How about TOSCONTRIBROOT?  Then just a few changes need to me made
to ncc to allow %C to be recognized.

Does anyone have any objections to adding this?  If not, I'll go ahead and
do it sometime this week.

Kevin

On Dec 15, 2007 3:40 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:

> I'm confused.   If I understand you correctly, your problem is that
> everything seems to be working just fine, but you don't really understand
> why.  Is that correct?  Based on what you show here, there is no way the
> make process to find your ecosensory specific directories.  Are you sure you
> aren't adding them to your search path using CFLAGS in your Makefile?
>
> Kevin
>
>
> On Dec 15, 2007 1:30 PM, John Griessen <[EMAIL PROTECTED]> wrote:
>
> > I'm compiling out of contrib now, and it seemed to work -- even a
> > functional test loaded to flash on a mote.  But I don't understand how
> > the includes are working in the .platform file.
> >
> > Here is some of the one I copied from telosb and added to:
> >
> > # Includes that should take precedence come first.  Platforms come
> > before
> > # chips because they may override files (first file found is the one).
> > These must be specified as
> > # @includes instead of -I's to @opts, otherwise the %T won't be
> > processed
> > # by ncc.  the %T gets expanded to the full location of tinyos-2.x/tos,
> > using the TOS2DIR
> > # environment variable.
> >
> > push( @includes, qw(
> >
> >   %T/platforms/ecosens1
> >   %T/platforms/ecosens1/chips/stm25p
> >   %T/platforms/ecosens1/chips/cc2420
> >   %T/chips/cc2420
> >   %T/chips/cc2420/alarm
> >   %T/chips/cc2420/control
> >   %T/chips/cc2420/csma
> >   %T/chips/cc2420/interfaces
> > .
> > .
> > chopped off
> > ====
> >
> > Is %T replaced with /opt/tinyos-2.x/tos ?  If so, none of my platform
> > chips dirs were found...by this list at least.  So how did it work?
> > Without the Hpl files about MSP430 and CC2420?  I doubt it.
> >
> > So how did it work?   From the ecosens1.target file?  That has a line:
> >
> > $(call TOSMake_include_platform,msp)
> >
> > Does the .platform list need to have paths to contrib dir defined by
> > you?  I think so...
> >
> > John Griessen
> >
> > --
> > Ecosensory
> > tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
>
> --
> ~Kevin




-- 
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to