📄 c-config2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Configuring the VxWorks Network Stack </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-config.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-config.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-config1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-dll.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="84289">2.2 Advice Concerning the Use of <b class="file">config.h</b> and <b class="file">configAll.h</b> </a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84291"> </a>There are times when VxWorks configuration must be fine-tuned beyond the capabilities of the configuration tool described in the <i class="title">Tornado User's Guide: Projects</i>. In these cases, you should edit configuration header files manually to modify constants and macros.</p><dd><p class="Body"><a name="94456"> </a>The <b class="file">config.h</b> file sets values for constants that the build uses to determine the contents of a VxWorks image. The tricky part of editing <b class="file">config.h</b> is determining where you want to insert the <b class="symbol_lc">#define</b> or <b class="symbol_lc">#undef</b> statement. This is because all <b class="file">config.h </b>files contain a <b class="symbol_lc">#include "configAll.h" </b>statement.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="94476"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING: </font></b></a>You should avoid modifying the <b class="file">configAll.h</b> file.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout> <dl class="margin"><dd><p class="Body"><a name="84293"> </a>Within the <b class="file">configAll.h</b> file, there are <b class="symbol_lc">#ifdef</b> blocks that depend on the value of a symbolic constant whose value you might want to modify. You should insert any change to <b class="symbol_lc">config.h</b> that modifies such constants <i class="emphasis">before</i> the inclusion of <b class="file">configAll.h</b>. However, <b class="symbol_lc">configAll.h</b> sometimes undefines a symbolic constant that you might want to define. In such cases, you should put your <b class="symbol_lc">#define</b> statement <i class="emphasis">after</i> the inclusion of <b class="file">configAll.h</b>. As a consequence, before you modify a value in a BSP's <b class="file">config.h</b> file, you must first check the <b class="symbol_lc">configAll.h</b> file for dependencies on the constant you want to modify. </p><dd><p class="Body"><a name="94498"> </a>If you modify the <b class="file">config.h </b>file, be sure to refer to the <i class="title">Tornado User's Guide: Projects</i> for advice on how to coordinate these changes with ones you make using the configuration tool.</p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-config.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-config.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-config1.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-dll.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -