📄 config-tool-building.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>Building</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos User Guide"HREF="ecos-user-guide.html"><LINKREL="UP"TITLE="The eCos Configuration Tool"HREF="the-ecos-configuration-tool.html"><LINKREL="PREVIOUS"TITLE="Searching"HREF="config-tool-searching.html"><LINKREL="NEXT"TITLE="Selecting User Tools"HREF="config-tool-selecting-user-tools.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos User Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="config-tool-searching.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="config-tool-selecting-user-tools.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="CONFIG-TOOL-BUILDING">Chapter 21. Building</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="config-tool-building.html#CONFIG-TOOL-SELECTING-BUILD-TOOLS">Selecting Build Tools</A></DT><DT><AHREF="config-tool-selecting-user-tools.html">Selecting User Tools</A></DT></DL></DIV><P>When you have configured <SPANCLASS="PRODUCTNAME">eCos</SPAN>, you may build the configuration.</P><P>On the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN> menu, click:</P><P></P><UL><LI><P> <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Library</I></SPAN> (or click the Build Library icon on the toolbar) – thiscauses the <SPANCLASS="PRODUCTNAME">eCos</SPAN> configuration to be built. The result of a successfulbuild will be (among other things) a library against which usercode can be linked</P></LI><LI><P> <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tests</I></SPAN> – this causes the <SPANCLASS="PRODUCTNAME">eCos</SPAN> configuration to be built, andadditionally builds the relevant test cases linked against the <SPANCLASS="PRODUCTNAME">eCos</SPAN> library</P></LI><LI><P> <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Clean</I></SPAN> – this removes all intermediate files, thus causing asubsequent build/library or build/tests operationto cause recompilation of all relevant files.</P></LI><LI><P> <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Stop</I></SPAN> – this causes a currently executing build (any of theabove steps) to be interrupted</P></LI></UL><P>Build options may be displayed by using the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build->Options</I></SPAN> menuitem. This displays a dialog box containing a drop-list controland two windows. The drop-list control allows you to select thetype of build option to be displayed (for example “LDFLAGS” arethe options applied at link-time. The left-hand window is a treeview of the packages loaded in the current configuration. The right-handwindow is a list of the build options that will be used for thecurrently selected package.</P><P>Note that this dialog box currently affords only read-onlyaccess to the build options. In order to change build options youmust edit the relevant string configuration item.</P><P>A single level of inheritance is supported: each package’sbuild options are combined with the global options (these are tobe found in the “Global build options” folderin the configuration view).</P><P><P><IMGSRC="pix/buildoptions.png"></P></P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="CONFIG-TOOL-SELECTING-BUILD-TOOLS">Selecting Build Tools</H1><P>Normally the installation process will supply the informationrequired for the <SPANCLASS="PRODUCTNAME">eCos</SPAN><SPANCLASS="APPLICATION">Configuration Tool</SPAN> tolocate the build tools (compiler, linker, etc.) necessaryto perform a build. However if this information is not registered,or it is necessary to specify the location manually (for example,when a new toolchain installation has been made), select <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tools</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Paths</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">BuildTools</I></SPAN>. The following dialog box will be displayed:</P><DIVCLASS="FIGURE"><ANAME="AEN1521"><P><B>Figure 21-1. Build tools</B></P><P><IMGSRC="pix/build-tools2.png"></P></DIV><P>This dialog box allows you to locate the folder containingthe build tools. </P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="config-tool-searching.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-user-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="config-tool-selecting-user-tools.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Searching</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="the-ecos-configuration-tool.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Selecting User Tools</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -