[Tinyos-devel] Re: [Tinyos-help] .platform question

David Gay dgay42 at gmail.com
Mon Dec 17 10:28:31 PST 2007


On Dec 17, 2007 10:08 AM, Kevin Klues <klueska at gmail.com> wrote:
>
>
> > Someone please correct me if I'm wrong, but one major motivation for %
> > T was .platform, where you can't apply make variable substitution.
>
> This discussion started while talking about .platform files for platforms
> developed inside contrib (see subject) and how to most easily reference the
> directories they need to include when being compiled.

It sounds like the reasonable approach is to:
- define a standard env variable for contrib (TOSCONTRIB?)
- use that in Makefiles and .platform files where necessary (.platform
files are perl, so it's $ENV{TOSCONTRIB} (within a string) or
$ENV{"TOSCONTRIB"} (outside a string) to get to the variable)

I'm with Phil on the principle that the % thingies should only be for
references to things within the tos hierarchy.

Btw, for .platform-in-contrib purposes, %P can be useful: it expands
to the directory where the .platform was found... (and this will
therefore work within contrib)

David


More information about the Tinyos-devel mailing list