⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 using-configtool-windows-linux.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 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>Configuration Tool on Windows and Linux Quick Start</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="Configuring and Building eCos from Source"HREF="configuring-and-building-ecos-from-source.html"><LINKREL="PREVIOUS"TITLE="Configuring and Building eCos from Source"HREF="configuring-and-building-ecos-from-source.html"><LINKREL="NEXT"TITLE="Ecosconfig on Windows and Linux Quick Start"HREF="using-ecosconfig-on-linux.html"></HEAD><BODYCLASS="SECT1"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="configuring-and-building-ecos-from-source.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 11. Configuring and Building <SPANCLASS="PRODUCTNAME">eCos</SPAN> from Source</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="using-ecosconfig-on-linux.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="USING-CONFIGTOOL-WINDOWS-LINUX">Configuration Tool on Windows and Linux Quick Start</H1><P> Note that the use of the <SPANCLASS="APPLICATION">Configuration Tool</SPAN>is described in detail in <AHREF="the-ecos-configuration-tool.html">Part IV in <I>eCos User Guide</I></A>.</P><P>The <SPANCLASS="APPLICATION">Configuration Tool</SPAN> (see <AHREF="using-configtool-windows-linux.html#PROGRAMMING-FIGURE-CONFIGURATION-TOOL">Figure 11-1</A>)has five main elements: the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">configuration window</I></SPAN>,the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">conflicts window</I></SPAN>,the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">properties window</I></SPAN>, the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">shortdescription window</I></SPAN>,and the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">output window</I></SPAN>.</P><DIVCLASS="FIGURE"><ANAME="PROGRAMMING-FIGURE-CONFIGURATION-TOOL"><P><B>Figure 11-1. Configuration Tool</B></P><P><IMGSRC="pix/config-f1.png"></P></DIV><P>Start by opening the templates window via <SPANCLASS="GUIMENUITEM">Build-&#62;Templates</SPAN>.Select the desired target (see <AHREF="using-configtool-windows-linux.html#FIGURE-TEMPLATE-SELECTION">Figure 11-2</A>).</P><DIVCLASS="FIGURE"><ANAME="FIGURE-TEMPLATE-SELECTION"><P><B>Figure 11-2. Template selection</B></P><P><IMGSRC="pix/templates01.png"></P></DIV><P>Make sure that the configuration is correct for the targetin terms of endianness, CPU model, Startup type, etc. (see <AHREF="using-configtool-windows-linux.html#CONFIGURING-FOR-THE-TARGET">Figure 11-3</A>).</P><DIVCLASS="FIGURE"><ANAME="CONFIGURING-FOR-THE-TARGET"><P><B>Figure 11-3. Configuringfor the target</B></P><P><IMGSRC="pix/ARMStartup01.png"></P></DIV><P>Next, select the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Library</I></SPAN> menuitem to start building <SPANCLASS="PRODUCTNAME">eCos</SPAN> (see <AHREF="using-configtool-windows-linux.html#FIGURE-SELECTING-THE-BUILD-LIBRARY-MENU-ITEM">Figure 11-4</A>).  Theapplication will configure the sources, prepare a build tree, andbuild the <TTCLASS="FILENAME">libtarget.a</TT> library, which contains the<SPANCLASS="PRODUCTNAME">eCos</SPAN> kernel and other packages.</P><DIVCLASS="FIGURE"><ANAME="FIGURE-SELECTING-THE-BUILD-LIBRARY-MENU-ITEM"><P><B>Figure 11-4. Selecting the Build Library menu item</B></P><P><IMGSRC="pix/build-lib01.png"></P></DIV><P>The <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Save As</I></SPAN> dialog box will appear, askingyou to specify a directory in which to place your save file. Youcan use the default, but it is a good idea to make a subdirectory,called <TTCLASS="FILENAME">ecos-work</TT> for example. </P><DIVCLASS="FIGURE"><ANAME="AEN607"><P><B>Figure 11-5. Save file dialog</B></P><P><IMGSRC="pix/save-as-dialog.png"></P></DIV><P>The first time you build an <SPANCLASS="PRODUCTNAME">eCos</SPAN> library for a specificarchitecture, the <SPANCLASS="APPLICATION">Configuration Tool</SPAN> may promptyou for the location of the appropriate build tools (including<BCLASS="COMMAND">make</B> and<BCLASS="COMMAND"><TTCLASS="REPLACEABLE"><I>TARGET-</I></TT>gcc</B>) using a<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build Tools</I></SPAN> dialog box (as shown in <AHREF="using-configtool-windows-linux.html#FIGURE-BUILD-TOOLS-DIALOG">Figure 11-6</A>). You can select a location fromthe drop down list, browse to the directory using the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Browse</I></SPAN> button, or type in the location of thebuild tools manually.</P><DIVCLASS="FIGURE"><ANAME="FIGURE-BUILD-TOOLS-DIALOG"><P><B>Figure 11-6. Build tools dialog</B></P><P><IMGSRC="pix/build-tools2.png"></P></DIV><P>The <SPANCLASS="APPLICATION">Configuration Tool</SPAN> may also prompt youfor the location of the user tools (such as <BCLASS="COMMAND">cat</B> and<BCLASS="COMMAND">ls</B>) using a <SPANCLASS="emphasis"><ICLASS="EMPHASIS">User Tools</I></SPAN> dialogbox (as shown in <AHREF="using-configtool-windows-linux.html#FIGURE-USER-TOOLS-DIALOG">Figure 11-7</A>). As withthe <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build Tools</I></SPAN> dialog, you can select a locationfrom the drop down list, browse to the directory using the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Browse</I></SPAN> button, or type in the location of theuser tools manually. Note that on Linux, this will often beunnecessary as the tools will already be on your PATH.</P><DIVCLASS="FIGURE"><ANAME="FIGURE-USER-TOOLS-DIALOG"><P><B>Figure 11-7. User tools dialog</B></P><P><IMGSRC="pix/user-tools-dialog.png"></P></DIV><P>When the tool locations have been entered, the <SPANCLASS="APPLICATION">ConfigurationTool</SPAN> will configure the sources, prepare a build tree,and build the <TTCLASS="FILENAME">libtarget.a</TT> library, which containsthe <SPANCLASS="PRODUCTNAME">eCos</SPAN> kernel and other packages.</P><P>The output from the configuration process and the buildingof <TTCLASS="FILENAME">libtarget.a</TT> will be shown in the outputwindow.</P><P>Once the build process has finished you will have a kernelwith other packages in <TTCLASS="FILENAME">libtarget.a</TT>. You shouldnow build the <SPANCLASS="PRODUCTNAME">eCos</SPAN> tests for your particular configuration. </P><P>You can do this by selecting <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN> -&#62; <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tests</I></SPAN>.Notice that you could have selected <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tests</I></SPAN> insteadof <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Library</I></SPAN> in the earlier step and it wouldhave built <SPANCLASS="emphasis"><ICLASS="EMPHASIS">both</I></SPAN> the library and the tests,but this would increase the build time substantially, and if youdo not need to build the tests it is unnecessary.</P><DIVCLASS="FIGURE"><ANAME="AEN648"><P><B>Figure 11-8. Selecting the Build Tests menu item</B></P><P><IMGSRC="pix/build-tests01.png"></P></DIV><P><AHREF="running-an-ecos-test-case.html">Chapter 12</A> will guide you through running one	    of the test cases you just built on the selected target,	    using GDB. </P></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="configuring-and-building-ecos-from-source.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="using-ecosconfig-on-linux.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Configuring and Building <SPANCLASS="PRODUCTNAME">eCos</SPAN> from Source</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="configuring-and-building-ecos-from-source.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Ecosconfig on Windows and Linux Quick Start</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -