But what I want is not at compile time, but at install time.
So I can reinstall my program in another node without compile again.


On 10/25/07, SANG Junjun <[EMAIL PROTECTED]> wrote:
>
> This is a good suggestion.
> Thanks.
>
> On 10/25/07, Jeongyeup Paek <[EMAIL PROTECTED]> wrote:
> >
> >
> > you can do something like this.
> >
> > 1) in your mote code, do
> > ----
> > #ifdef MY_AT_COMPILE
> >    #define  MY_VAL  MY_AT_COMPILE
> > #else
> >    #define  MY_VAL  0  // some default value
> > #endif
> > ----
> >
> >
> > 2) in your mote app Makefile, do
> > ----
> > ifdef MY_COMPILE_ARG
> >    CFLAGS += -DMY_AT_COMPILE=$(MY_COMPILE_ARG)
> > endif
> > ----
> >
> >
> > 3) When you compile, do
> > ---
> > make telosb MY_COMPILE_ARG=5
> > ---
> >
> > This will work.
> > Does anyone know shorter way?
> >
> > Thanks
> >
> > - jpaek
> >
> >
> > SANG Junjun wrote:
> > > Is it possible to set some value at the install time? just like
> > TOS_NODE_ID
> > >
> > > for example, when we install a program, we type "make platform
> > install,1
> > > ..."
> > > then  TOS_NODE_ID is set 1.
> > >
> > > --
> > > Best Regards,
> > > SANG JUNJUN
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > [email protected]
> > >
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> > --
> >
> > Jeongyeup Paek
> > Ph.D. student
> > Embedded Networks Laboratory
> > Department of Computer Science
> > University of Southern California
> > http://enl.usc.edu/~jpaek
> >
> >
>
>
> --
> Best Regards,
> SANG JUNJUN




-- 
Best Regards,
SANG JUNJUN
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to