📄 buildenv.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>TinyOS Build Environment</title></head><body bgcolor="#f8f8ff" link="#005bb7" vlink="#005bb7"><table border="0" hspace="4" cellspacing="2" width="100%" cellpadding="3"> <tbody> <tr bgcolor="#e0e0ff"> <td width="100%"> <font face="tahoma,arial,helvetica"><b><big><big>Tailoring the TinyOS Build Environment</big></big></b> </font> <p> <font face="tahoma,arial,helvetica">Last updated 03 Sep 2003 </font> </p> </td> </tr> </tbody></table><p> When building TinyOS applications, it is useful to define certainbuild parameters that are specific to your needs. Such parametersinclude the operating frequency (mica2/mica2dot), the Group ID,different component libraries, etc. This section describes how totailor your TinyOS build environment to suit your needs.</p><p><table border="0" hspace="4" cellspacing="2" width="100%" cellpadding="3"> <tbody> <tr bgcolor="#e0e0ff"> <td width="100%"><b><font face="arial,helvetica">The Makelocalfile</font></b></td> </tr> </tbody></table></p><p> The Makerules file in the apps directory manages many aspects of thebuild process for TinyOS applications. While it is possible to edit thisfile to make changes, such practice is not advisable since 1) theMakerules file is not intuitive, 2) changing this file may breakthe build process, 3) the changes may not portable to otherusers. </p><p> To allow for tailoring the build environment, the Makerules filelooks for a Makelocal file located in the apps directory andincludes it in the build process. Changes made to the Makelocal filecan be easily reversed (just delete/rename the file) and can bedistributed to other users. </p><p> To use this feature, create a Makelocal file in the apps directorywhich contains your custom definitions using standard makefilesyntax. For example: <br></p><p> <tt># Makelocal File<br><br>PFLAGS += -I%T/../beta/MyBetaCode<br><br>DEFAULT_LOCAL_GROUP = 0x33<br><br>PFLAGS += -DCC1K_DEF_FREQ=916700000<br><br>EPRB=myprogrammer.foo.com</tt></p><p> The above Makelocal file adds a search path for code in../../beta/MyCode, defines the default Group ID (0x33) and manualfrequency setting (916.7 MHz) for the mica2 series motes, and setsthe default programmer as an EPRB with hostname'myprogrammer.foo.com'</p><p> </p><hr> <b><a href="index.html"> Tutorial Index </a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -