[Tinyos-help] .extra file not linking up
Christopher Jenkins
chrmjenkins at gmail.com
Thu Aug 9 08:31:30 PDT 2007
Hello,
I've been making some custom changes to a platform, and when I execute make,
it cannot find definitions for the tinsec.extra variables TINYSEC_KEYSIZE
and TINYSEC_KEY, but it works fine for the same application in mica2.
Below is what my tinysec.extra file looks like...
#-*-Makefile-*- vim:syntax=make
#$Id: tinysec.extra,v 1.1 2006/01/03 07:42:37 mturon Exp $
#########################################################################
# TinySec processing
#########################################################################
# 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+'
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 ($(TARGET),mica2dot)
PFLAGS := $(PFLAGS) -I%T/platform/mica2/TinySec
endif
# CMJ 7/27/07
# Added an if for cricket too
# CMJ 8/8/07
# Added the definition for TINYSEC_KEYSIZE on
ifeq ($(TARGET),cricket)
PFLAHS := $(PFLAGS) -I%T/platform/cricket/TinySec
-DTINYSEC_KEY="$(TINYSEC_KEY)" -DTINYSEC_KEYSIZE=8
endif
As you can see, I've added the definition for my platform and even
explicitly defined TINYSEC_KEYSIZE, but the only way I can get the program
to recognize it is by declaring it directly in the top of whatever files
need it (like TinySecC for example).
Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070809/7a396c1f/attachment.htm
More information about the Tinyos-help
mailing list