📄 install-tree.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>Install Tree</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 Component Repository and Working Directories"HREF="component-repo-and-working-dirs.html"><LINKREL="PREVIOUS"TITLE="Build Tree"HREF="build-tree.html"><LINKREL="NEXT"TITLE="Application Build Tree"HREF="repository-app-build-tree.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="build-tree.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 25. The Component Repository and Working Directories</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="repository-app-build-tree.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="INSTALL-TREE">Install Tree</H1><P>The <ICLASS="FIRSTTERM">install tree</I> is the location for all files needed for application development. The <TTCLASS="FILENAME">libtarget.a</TT> library, which contains the custom-built <SPANCLASS="PRODUCTNAME">eCos</SPAN> kernel and other components, is placed in the install tree, along with all packages’ public header files. If you build the tests, the test executable programs will also be placed in the install tree. </P><P>By default, the install tree is created by <BCLASS="COMMAND">ecosconfig</B> in a subdirectory of the build tree called <TTCLASS="FILENAME">install</TT>. This can be modified with the <TTCLASS="OPTION">--prefix</TT> option (see <AHREF="manual-configuration.html">Chapter 28</A>). </P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2130">Purpose</H2><P>The install tree is where the custom-built <TTCLASS="FILENAME">libtarget.a</TT> library, which contains the <SPANCLASS="PRODUCTNAME">eCos</SPAN> kernel and other components, is located. The install tree is also the location for all the header files that are part of a published interface for their component. </P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2135">How is it modified?</H2><P>Recompiling can replace <TTCLASS="FILENAME">libtarget.a</TT> and the test executables. </P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2139">When is it edited manually?</H2><P>Where a memory layout requires modification without use of the <SPANCLASS="PRODUCTNAME">eCos</SPAN> <SPANCLASS="APPLICATION">Configuration Tool</SPAN>, the memory layout files must be edited directly in the install tree. These files are located at <TTCLASS="FILENAME">install/include/pkgconf/mlt_*.*</TT>. Note that subsequent modification of the install tree using the Configuration Tool will result in such manual edits being lost.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2145">User applications</H2><P>User application source or binary code should <SPANCLASS="emphasis"><ICLASS="EMPHASIS">not</I></SPAN> go in the install tree. </P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2149">Examples of files in this hierarchy</H2><P></P><DIVCLASS="VARIABLELIST"><DL><DT><TTCLASS="FILENAME">install/lib/libtarget.a</TT></DT><DD><P>The library containing the kernel and other components.</P></DD><DT><TTCLASS="FILENAME">install/include/cyg/kernel/kapi.h</TT></DT><DD><P>The header file for the kernel C language API.</P></DD><DT><TTCLASS="FILENAME">install/include/pkgconf/mlt_arm_pid_ram.ldi</TT></DT><DD><P>The linker script fragment describing the memory layout for linking applications intended for execution on an ARM PID development board using RAM startup.</P></DD><DT><TTCLASS="FILENAME">install/include/stdio.h</TT></DT><DD><P>The C library header file for standard I/O. </P></DD></DL></DIV></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="build-tree.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="repository-app-build-tree.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Build Tree</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="component-repo-and-working-dirs.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Application Build Tree</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -