The usual way to add an option to the nescc compile line
from your app/Makefile is this:
PFLAGS += option
so this might work:
PFLAGS += TINYSEC=true
Although you might need it to be -DTINYSEC=true if it is
a #define being set. You should see whatever you put in
PFLAGS in the nesc command line output when make runs.
MS
Haripriya priya wrote:
> Hi,
>
> In TinySec the , security is enabled through setting "TINYSEC = true" in
> Makefile of our application program.
>
>
> Then we need to write the actions performed in Avr.rules
>
> There we will give our processing...
>
> I got a similar example:
>
>
> ifndef TINYSEC
>
> TINYSEC := false # default: disable tinysec
>
> endif
>
> # The tinysec keyfile to use and the default key name (this re matches the
>
> # first key. you can explicitly list keys by: make mica KEYNAME=mykeyname
>
> KEYFILE := $(HOME)/.tinyos_keyfile
>
> KEYNAME := '\w+'
>
>
> ifeq ($(TINYSEC),true)
>
> TINYSEC_KEY := $(shell mote-key -kf $(KEYFILE) -kn $(KEYNAME))
>
> ifeq ($(TINYSEC_KEY),)
>
> $(error tinysec key has not been properly set. It is needed for tinysec. \
>
> Check to make sure that the script exists)
>
> endif
>
> PFLAGS := $(PFLAGS) -I%T/lib/TinySec -I%T/platform/%p/TinySec
> -DTINYSEC_KEY="$(TINYSEC_KEY)" -DTINYSEC_KEYSIZE=8
>
> ifeq ($(PLATFORM),mica2dot)
>
> PFLAGS := $(PFLAGS) -I%T/platform/mica2/TinySec
>
> endif
>
> endif
>
>
>
>
> like this....
>
>
> I could not understand this makefile processing code...
>
> How to do those ? In TinySec how is it done?
>
>
>
> If i need to develop my own protocol i need to add this...
>
>
> Please help....
>
>
>
> Thanks in advance..
>
>
>
> --
> Regards,
> S.Haripriya
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help