📄 component-repo-and-working-dirs.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>The Component Repository and Working Directories</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="eCos Programming Concepts and Techniques"HREF="ecos-programming-concepts-and-techniques.html"><LINKREL="PREVIOUS"TITLE="Templates"HREF="cdl-templates.html"><LINKREL="NEXT"TITLE="Build Tree"HREF="build-tree.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="cdl-templates.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="build-tree.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="COMPONENT-REPO-AND-WORKING-DIRS">Chapter 25. The Component Repository and Working Directories</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="component-repo-and-working-dirs.html#COMPONENT-REPO">Component Repository</A></DT><DT><AHREF="build-tree.html">Build Tree</A></DT><DT><AHREF="install-tree.html">Install Tree</A></DT><DT><AHREF="repository-app-build-tree.html">Application Build Tree</A></DT></DL></DIV><P>Each of the file trees involved in <SPANCLASS="PRODUCTNAME">eCos</SPAN> development has a different role. </P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="COMPONENT-REPO">Component Repository</H1><P>The <SPANCLASS="PRODUCTNAME">eCos</SPAN> <ICLASS="FIRSTTERM">component repository</I> contains directories for all the packages that are shipped with <SPANCLASS="PRODUCTNAME">eCos</SPAN> or provided by third parties.</P><P>The component repository should not be modified as part ofapplication development. </P><DIVCLASS="FIGURE"><ANAME="AEN2022"><P><B>Figure 25-1. Component repository</B></P><P><IMGSRC="pix/comprepos.png"></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2025">Purpose</H2><P>The component repository is the master copy of source codefor all system and third party components. It also contains somefiles needed to administer and build the system, such as <BCLASS="COMMAND">ecosadmin.tcl</B>.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2029">How is it modified?</H2><P>You modify it by importing new versions of packages from adistribution or removing existing packages. These activities areundertaken using the <SPANCLASS="PRODUCTNAME">eCos</SPAN> <SPANCLASS="APPLICATION">Package Administration Tool</SPAN>.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2034">When is it edited manually?</H2><P>Files in the component repository should only be edited manuallyas determined by the component maintainer.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2037">User Applications</H2><P>User application source code should <SPANCLASS="emphasis"><ICLASS="EMPHASIS">not</I></SPAN> gointo the component repository.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN2041">Examples of files in this hierarchy:</H2><P></P><DIVCLASS="VARIABLELIST"><DL><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/doc/ref/ecos-ref.html</TT></DT><DD><P>The top level HTML file for the <ICLASS="CITETITLE"><SPANCLASS="PRODUCTNAME">eCos</SPAN> Reference Manual</I>. </P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/prebuilt/pid/tests/kernel/<TTCLASS="REPLACEABLE"><I><version></I></TT>/tests/thread_gdb.exe</TT></DT><DD><P></P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/prebuilt/linux/tests/kernel/<TTCLASS="REPLACEABLE"><I><version></I></TT>/tests/thread_gdb.exe</TT></DT><DD><P>Pre-built tests for the supported platforms, and the synthetic Linux target.</P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/examples/twothreads.c</TT></DT><DD><P>One of the example programs.</P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/ecosadmin.tcl</TT></DT><DD><P>The Tcl program which is used to import new versions of packagesfrom a distribution or remove existing packages.</P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/packages/language/c/libm/<TTCLASS="REPLACEABLE"><I><version></I></TT>/src/double/portable-api/s_tanh.c</TT></DT><DD><P>Implementation of the hyperbolic tangent function in the standardmath library.</P></DD><DT><TTCLASS="FILENAME"><TTCLASS="REPLACEABLE"><I>BASE_DIR</I></TT>/pkgconf/rules.mak</TT></DT><DD><P>A file with <BCLASS="COMMAND">make</B> rules, usedby the <TTCLASS="FILENAME">makefile</TT>.</P></DD></DL></DIV></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="cdl-templates.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="build-tree.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Templates</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-programming-concepts-and-techniques.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Build Tree</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -