In your .target file you can simply add the line

PFLAGS += -I/opt/tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1/

and you should be good to go.  Of course after we get the %C thing added
(assuming there are no objections in the next few days) it will be

PFLAGS += -I%C/ecosensory/tos/platforms/ecosens1/

Take a look at the ncc perl script to see why this works.  The valid code is
on lines 70 and 122.

Kevin


On Dec 16, 2007 10:17 AM, John Griessen <[EMAIL PROTECTED]> wrote:

> Now, the platform I can see not being found... since the .platform file
> is in contrib too, how would it be found even.
>
> But, suppose my Makefile has this line:
> CFLAGS +=-I$(TOSROOT)/../tinyos-2.x-contrib
> /ecosensory/tos/platforms/ecosens1
> TOSMAKE_PATH += $(TOSROOT)/../tinyos-2.x-contrib/ecosensory/support/make
> include $(MAKERULES)
>
> Those Makefile lines are essential to compile, and I can take all the
> %T/..path-to-contrib lines out and no effect.  They are not needed.
>
> Wouldn't it be better if the path to
> tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1
> include was put in teh .target file?
>
> Is there a way to do that?
>
> John Griessen
>
> My .platform file
> /opt/tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1/.platform
> ======================================
> # by ncc.  the %T gets expanded to the full location of tinyos-2.x/tos,
> using the TOS2DIR
> # environment variable.
>
> push( @includes, qw(
>
>   %T/../../tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1
>   %T/../../tinyos-2.x-contrib/ecosensory/tos/sensorboards/a2d12ch/
>
> %T/../../tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1/chips/stm25p
>
> %T/../../tinyos-2.x-contrib/ecosensory/tos/platforms/ecosens1/chips/cc2420
>   %T/chips/cc2420
>   %T/chips/cc2420/alarm
>   %T/chips/cc2420/control
>
> My .target file:
> /opt/tinyos-2.x-contrib/ecosensory/support/make/.target
> ============================================================
> #$Id: ecosens1.target,v 1.0
>
> PLATFORM ?= ecosens1
>
> #MSP_MCU = msp430x1611
>
> # Disable MSP430 hardware multiply because it makes MSPGCC die
> PFLAGS += -mdisable-hwmul
> OPTFLAGS += -O
>
> MSP_BSL ?= tos-bsl
> MSP_BSL_FLAGS = --telosb
>
> VOLUME_FILE = volumes-stm25p.xml
> VOLUME_ALLOCATOR = tos-storage-stm25p
>
> ifdef CC2420_CHANNEL
> PFLAGS += -DCC2420_DEF_CHANNEL=$(CC2420_CHANNEL)
> endif
>
> $(call TOSMake_include_platform,msp)    #rules from T2 jg08dec07
> ecosens1: $(BUILD_DEPS)
>        @:
> ===========================
>
>
> Thanks,
>
> 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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to