📄 ref.script.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>script</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="The eCos Component Writer's Guide"HREF="cdl-guide.html"><LINKREL="UP"TITLE="CDL Language Specification"HREF="reference.html"><LINKREL="PREVIOUS"TITLE="requires"HREF="ref.requires.html"><LINKREL="NEXT"TITLE="Templates, Targets and Other Topics"HREF="advanced.html"></HEAD><BODYCLASS="REFENTRY"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">The <SPANCLASS="APPLICATION">eCos</SPAN> Component Writer's Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="ref.requires.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="advanced.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="REF.SCRIPT"><SPANCLASS="PROPERTY">script</SPAN></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4954"></A><H2>Name</H2>Property <SPANCLASS="PROPERTY">script</SPAN> -- Include additional configuration information from anotherCDL script.</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN4958"><H2>Synopsis</H2><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SYNOPSIS">cdl_component <name> { script <filename> …}</PRE></TD></TR></TABLE></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4960"></A><H2>Description</H2><P>It is possible to define all the configuration options andsub-components for a given package in a single CDL script, either bynesting them in the appropriate command bodies, by extensive use ofthe <SPANCLASS="PROPERTY">parent</SPAN> property, or by some combination of these two. Howeverfor large packages this is inconvenient and it is better to split theraw configuration data over several different files. The <SPANCLASS="PROPERTY">script</SPAN>property can be used to achieve this. It takes a single filename asargument. If the package follows the <AHREF="package.html#PACKAGE.HIERARCHY">directory layout conventions</A> thenthe configuration tools will look for the specified file in the<TTCLASS="FILENAME">cdl</TT> sub-directory of thepackage, otherwise it will look for the file relative to the package'stop-level directory.</P><P>The <SPANCLASS="PROPERTY">script</SPAN> property can only occur in the body of a <TTCLASS="LITERAL">cdl_component</TT>command, and only one <SPANCLASS="PROPERTY">script</SPAN> property per body is allowed.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4971"></A><H2>Example</H2><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">cdl_component CYGPKG_UITRON_TASKS { display "Tasks" flavor none description " uITRON Tasks are the basic blocks of multi-tasking in the uITRON world; they are threads or lightweight processes, sharing the address space and the CPU. They communicate using the primitives outlined above. Each has a stack, an entry point (a C or C++ function), and (where appropriate) a scheduling priority." script tasks.cdl}</PRE></TD></TR></TABLE></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4974"></A><H2>See Also</H2><P>Command <AHREF="ref.cdl-component.html"><TTCLASS="LITERAL">cdl_component</TT></A>,and property <AHREF="ref.parent.html"><SPANCLASS="PROPERTY">parent</SPAN></A>.</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="ref.requires.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="cdl-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="advanced.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><SPANCLASS="PROPERTY">requires</SPAN></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="reference.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Templates, Targets and Other Topics</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -