]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
add %P to ncc to stay in line with the storage volume tool
authoridgay <idgay>
Wed, 11 Apr 2007 21:36:53 +0000 (21:36 +0000)
committeridgay <idgay>
Wed, 11 Apr 2007 21:36:53 +0000 (21:36 +0000)
tools/tinyos/ncc/ncc.1
tools/tinyos/ncc/ncc.in

index f04e1433af0a0ef1d9b75674458a8e692c82e7c6..25995a828d7011aef3738e0182f93a177f05fee8 100644 (file)
@@ -85,9 +85,10 @@ If you wish to compile a component Bar.nc to a C file, you can do:
 ncc -c -o /dev/null -fnesc-cfile=Bar.c Bar.nc
 .SH SEARCH PATH
 
-\fBncc\fR performs the following substitutions on the directories specified
-with the \fB-I\fR option: \fB%T\fR is replaced by the TinyOS directory,
-\fB%p\fR is replaced by the selected target, \fB%%\fR is replaced by
+\fBncc\fR performs the following substitutions on the directories
+specified with the \fB-I\fR option: \fB%T\fR is replaced by the TinyOS
+directory, \fB%p\fR is replaced by the selected target, \fB%P\fR is
+replaced by the target's platform directory, \fB%%\fR is replaced by
 \fB%\fR.
 
 Except when \fB-nostdinc\fR is specified, the search path for nesC
index 7ae3c0a21309b8790bd5ab106d054955ffe8de51..2adbaa52bfebf4bb80c0cbd23b578fccce160d43 100644 (file)
@@ -262,6 +262,7 @@ sub idir_subst {
        $rep = "%" if $char eq "%";
        $rep = $TOSDIR if $char eq "T";
        $rep = $target if $char eq "p";
+       $rep = $platform_dir if $char eq "P";
        &fail("unknown include-path substitution %" . $char) if !$rep;
        substr($idir, $idx, 2) = $rep;
        $idx += length $rep;