[Tinyos Core WG] ncc uses static prefixes

Jan Beutel j.beutel at ieee.org
Mon Jun 30 11:13:09 PDT 2008


Hello kevin and the rest,

I noticed that ncc distributed with
http://tinyos.stanford.edu/tinyos/dists/ubuntu/full-listing/i386/tinyos-tool
s_1.3.0-20080625_i386.deb uses a static prefix to locate nescc which of
course DOES NOT work on any customized installation not defaulting to
/usr/bin. 

#!/usr/bin/perl
# -*- perl -*-

# Copyright (c) 2002-2005 Intel Corporation
# All rights reserved.
#q
# This file is distributed under the terms in the attached INTEL-LICENSE
# file. If you do not find these files, copies can be found by writing to
# Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
# 94704.  Attention:  Intel License Inquiry.

# Configuration
$TOSDIR = "/opt/tinyos-2.x/tos";
$TOSDIR = $ENV{"TOSDIR"} if defined($ENV{"TOSDIR"});
$nescc = "/usr/bin/nescc";                   


There is a mechanism for relocation built in to nescc, maybe we can use the
same here?

(copy from my very own nescc located in /scratch/tos2/usr/bin)

# Configuration
$prefix = "/scratch/tos2/usr";
$exec_prefix = "${prefix}";
$NCDIR = "${exec_prefix}/lib/ncc";


What do people think?

Jan



Dr. Jan Beutel                              j.beutel at ieee.org
Computer Engineering and Networks Laboratory, ETZ G75
ETH Zurich                             +41 44 632 70 32 Phone
Gloriastrasse 35                         +41 44 632 10 35 Fax
CH 8092 Zurich/Switzerland  http://www.tik.ee.ethz.ch/~beutel




More information about the Tinyos-2.0wg mailing list