📄 config-tool-using-templates.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>Using Templates</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="Updating the Configuration"HREF="config-tool-updating-configuration.html"><LINKREL="PREVIOUS"TITLE="Platform Selection"HREF="config-tool-platform-selection.html"><LINKREL="NEXT"TITLE="Searching"HREF="config-tool-searching.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="config-tool-platform-selection.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 19. Updating the Configuration</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="config-tool-searching.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="CONFIG-TOOL-USING-TEMPLATES">Using Templates</H1><P>To load a configuration based on a template, select <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build</I></SPAN>-><SPANCLASS="emphasis"><ICLASS="EMPHASIS">Templates</I></SPAN>.</P><P>The following dialog box will be displayed:</P><DIVCLASS="FIGURE"><ANAME="AEN1417"><P><B>Figure 19-4. Templates dialog box</B></P><P><IMGSRC="pix/templates.png"></P></DIV><P>Change the hardware template, the packages template, or both. To select a hardware template, choose from the first drop-list. To choose a packages template, choose from the second. Brief descriptions of each kind of template are provided in the corresponding edit boxes.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="RESOLVING-CONFLICTS">Resolving conflicts</H2><P>During the process of configuring <SPANCLASS="PRODUCTNAME">eCos</SPAN> it is possible that conflicts will be created. For more details of the meaning of conflicts, see <AHREF="cdl-concepts.html">Chapter 24</A>.</P><P>The Conflicts Window displays all conflicts in the current configuration. Additionally, a window in the status bar displays a count of the conflicts. Because the resolution of conflicts can be time-consuming, a mechanism exists whereby conflicts can be resolved automatically.</P><P>You can choose to have a conflicts resolution dialog box displayed by means of the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">View->Settings... </I></SPAN>menu item, on the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Conflict Resolution</I></SPAN>tab of the dialog.</P><DIVCLASS="FIGURE"><ANAME="AEN1430"><P><B>Figure 19-5. Options</B></P><P><IMGSRC="pix/ToolsOptions.png"></P></DIV><P>You can choose to have conflicts checked under the following circumstances:</P><P></P><UL><LI><P>After any item is changed (in other words, as soon as the conflict is created)</P></LI><LI><P>Before saving the configuration (including building)</P></LI><LI><P>Never</P></LI></UL><P>The method you chose depends on how much you need your configuration to be free of conflicts. You may want to avoid having to clean up all the conflicts at once, or you may want to keep the configuration consistent at all times. If you have major changes to implement, which may resolve the conflicts, then you might want to wait until after you have completed these changes before you check for conflicts.</P><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>Note: </B>If you choose to check conflicts after any item is changed, only newly arising conflicts are displayed. If you choose to check for conflicts before saving the configuration, the complete set is displayed.</P></BLOCKQUOTE></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN1444">Automatic resolution</H2><P>If you check the “Automatically suggest fixes” check box, a conflicts resolution dialog box will be displayed whenever new conflicts are created. The same dialog box may be displayed at any stage by means of the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tools->Resolve Conflicts</I></SPAN> <SPANCLASS="emphasis"><ICLASS="EMPHASIS"></I></SPAN>menu item. </P><P>The conflicts resolution dialog box contains two major windows. </P><DIVCLASS="FIGURE"><ANAME="AEN1450"><P><B>Figure 19-6. Resolve conflicts window</B></P><P><IMGSRC="pix/Conflicts.png"></P></DIV><P>The upper contains the set of conflicts to be addressed; theformat of the data being as that of the Conflicts Window. The lowerwindow contains a set of proposed resolutions – each entryis a suggested configuration item value change that as a whole maybe expected to lead to the currently selected conflict being resolved. </P><P>Note that there is no guarantee:</P><P></P><UL><LI><P>that automatic resolutions will be determinable for everyconflict.</P></LI><LI><P> that the resolutions for separate conflicts will be independent.In other words, the resolution of one conflict may serve to preventthe resolution of another.</P></LI><LI><P> that the resolution conflicts will not create furtherconflicts.</P></LI></UL><P>The above warnings are, however, conservative. In practice(so long as the number and extent of conflicts are limited) automaticconflict resolution may be used to good effect to correct problemswithout undue amounts of programmer intervention.</P><P>In order to select the conflicts to be applied, select orclear the check boxes against the resolutions for each proposedresolution. By default all resolutions are selected; you can returnto the default state (in other words, cause all check boxes foreach conflict to again become checked) by pressing the “Reset” button.Note that multiple selection may be used in the resolutions controlto allow ranges of check boxes to be toggled in one gesture.</P><P>When you are happy to apply the selected resolutions for eachconflict displayed, click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Apply</I></SPAN>; this willapply the resolutions. Alternatively you may cancel from the dialogbox without any resolutions being applied.</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-platform-selection.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-searching.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Platform Selection</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="config-tool-updating-configuration.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Searching</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -