summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-06-12 10:06:56 +0000
committerRichard Purdie <richard@openedhand.com>2007-06-12 10:06:56 +0000
commit70b11ba5824b9b713ab35dd7b677c102d59af915 (patch)
treee8f4d2e9dc4a894cb6f07c33cef9d88451eeb37d
parent5c41f1ec4ca2d962b040ec6d5b8f1a9e03494e50 (diff)
downloadopenembedded-core-70b11ba5824b9b713ab35dd7b677c102d59af915.tar.gz
openembedded-core-70b11ba5824b9b713ab35dd7b677c102d59af915.tar.bz2
openembedded-core-70b11ba5824b9b713ab35dd7b677c102d59af915.tar.xz
openembedded-core-70b11ba5824b9b713ab35dd7b677c102d59af915.zip
bitbake: Sync manual updates and version info with bitbake svn
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1920 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--bitbake/ChangeLog3
-rwxr-xr-xbitbake/bin/bitbake2
-rw-r--r--bitbake/doc/manual/usermanual.xml54
-rw-r--r--bitbake/lib/bb/__init__.py2
4 files changed, 58 insertions, 3 deletions
diff --git a/bitbake/ChangeLog b/bitbake/ChangeLog
index b254ce4ab..4bac05c49 100644
--- a/bitbake/ChangeLog
+++ b/bitbake/ChangeLog
@@ -1,10 +1,13 @@
Changes in Bitbake 1.8.x:
+
+Changes in Bitbake 1.8.4:
- Make sure __inherit_cache is updated before calling include() (from Michael Krelin)
- Fix bug when target was in ASSUME_PROVIDED (#2236)
- Raise ParseError for filenames with multiple underscores instead of infinitely looping (#2062)
- Fix invalid regexp in BBMASK error handling (missing import) (#1124)
- Don't run build sanity checks on incomplete builds
- Promote certain warnings from debug to note 2 level
+ - Update manual
Changes in Bitbake 1.8.2:
- Catch truncated cache file errors
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index b96b6b111..801070aad 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -27,7 +27,7 @@ sys.path.insert(0,os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'l
import bb
from bb import cooker
-__version__ = "1.8.3"
+__version__ = "1.8.5"
#============================================================================#
# BBOptions
diff --git a/bitbake/doc/manual/usermanual.xml b/bitbake/doc/manual/usermanual.xml
index 4db452747..a79716a0a 100644
--- a/bitbake/doc/manual/usermanual.xml
+++ b/bitbake/doc/manual/usermanual.xml
@@ -176,6 +176,12 @@ include</literal> directive.</para>
<para>This would result in <varname>DEPENDS</varname> containing <literal>dependencywithcond</literal>.</para>
</section>
<section>
+ <title>Variable Flags</title>
+ <para>Variables can have associated flags which provide a way of tagging extra information onto a variable. Several flags are used internally by bitbake but they can be used externally too if needed. The standard operations mentioned above also work on flags.</para>
+ <para><screen><varname>VARIABLE</varname>[<varname>SOMEFLAG</varname>] = "value"</screen></para>
+ <para>In this example, <varname>VARIABLE</varname> has a flag, <varname>SOMEFLAG</varname> which is set to <literal>value</literal>.</para>
+ </section>
+ <section>
<title>Inheritance</title>
<para><emphasis>NOTE:</emphasis> This is only supported in .bb and .bbclass files.</para>
<para>The <literal>inherit</literal> directive is a means of specifying what classes of functionality your .bb requires. It is a rudamentary form of inheritence. For example, you can easily abstract out the tasks involved in building a package that uses autoconf and automake, and put that into a bbclass for your packages to make use of. A given bbclass is located by searching for classes/filename.oeclass in <envar>BBPATH</envar>, where filename is what you inherited.</para>
@@ -213,6 +219,42 @@ of the event and the content of the <varname>FILE</varname> variable.</para>
</section>
</section>
<section>
+ <title>Dependency Handling</title>
+ <para>Bitbake 1.7.x onwards works with the metadata at the task level since this is optimal when dealing with multiple threads of execution. A robust method of specifing task dependencies is therefore needed. </para>
+ <section>
+ <title>Dependencies internal to the .bb file</title>
+ <para>Where the dependencies are internal to a given .bb file, the dependencies are handled by the previously detailed addtask directive.</para>
+ </section>
+
+ <section>
+ <title>DEPENDS</title>
+ <para>DEPENDS is taken to specify build time dependencies. The 'deptask' flag for tasks is used to signify the task of each DEPENDS which must have completed before that task can be executed.</para>
+ <para><screen>do_configure[deptask] = "do_populate_staging"</screen></para>
+ <para>means the do_populate_staging task of each item in DEPENDS must have completed before do_configure can execute.</para>
+ </section>
+ <section>
+ <title>RDEPENDS</title>
+ <para>RDEPENDS is taken to specify runtime dependencies. The 'rdeptask' flag for tasks is used to signify the task of each RDEPENDS which must have completed before that task can be executed.</para>
+ <para><screen>do_package_write[rdeptask] = "do_package"</screen></para>
+ <para>means the do_package task of each item in RDEPENDS must have completed before do_package_write can execute.</para>
+ </section>
+ <section>
+ <title>Recursive DEPENDS</title>
+ <para>These are specified with the 'recdeptask' flag and is used signify the task(s) of each DEPENDS which must have completed before that task can be executed. It applies recursively so also, the DEPENDS of each item in the original DEPENDS must be met and so on.</para>
+ </section>
+ <section>
+ <title>Recursive RDEPENDS</title>
+ <para>These are specified with the 'recrdeptask' flag and is used signify the task(s) of each RDEPENDS which must have completed before that task can be executed. It applies recursively so also, the RDEPENDS of each item in the original RDEPENDS must be met and so on. It also runs all DEPENDS first too.</para>
+ </section>
+ <section>
+ <title>Inter Task</title>
+ <para>The 'depends' flag for tasks is a more generic form of which allows an interdependency on specific tasks rather than specifying the data in DEPENDS or RDEPENDS.</para>
+ <para><screen>do_patch[depends] = "quilt-native:do_populate_staging"</screen></para>
+ <para>means the do_populate_staging task of the target quilt-native must have completed before the do_patch can execute.</para>
+ </section>
+ </section>
+
+ <section>
<title>Parsing</title>
<section>
<title>Configuration Files</title>
@@ -371,6 +413,8 @@ options:
Stop processing at the given list of dependencies when
generating dependency graphs. This can help to make
the graph more appealing
+ -l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS
+ Show debug logging for the specified logging domains
</screen>
</para>
@@ -401,13 +445,21 @@ options:
<title>Generating dependency graphs</title>
<para>BitBake is able to generate dependency graphs using the dot syntax. These graphs can be converted
to images using the <application>dot</application> application from <ulink url="http://www.graphviz.org">graphviz</ulink>.
-Three files will be written into the current working directory, <emphasis>depends.dot</emphasis> containing <varname>DEPENDS</varname> variables, <emphasis>rdepends.dot</emphasis> and <emphasis>alldepends.dot</emphasis> containing both <varname>DEPENDS</varname> and <varname>RDEPENDS</varname>. To stop depending on common depends one can use the <prompt>-I depend</prompt> to omit these from the graph. This can lead to more readable graphs. E.g. this way <varname>DEPENDS</varname> from inherited classes, e.g. base.bbclass, can be removed from the graph.</para>
+Two files will be written into the current working directory, <emphasis>depends.dot</emphasis> containing dependency information at the package level and <emphasis>task-depends.dot</emphasis> containing a breakdown of the dependencies at the task level. To stop depending on common depends one can use the <prompt>-I depend</prompt> to omit these from the graph. This can lead to more readable graphs. E.g. this way <varname>DEPENDS</varname> from inherited classes, e.g. base.bbclass, can be removed from the graph.</para>
<screen><prompt>$ </prompt>bitbake -g blah</screen>
<screen><prompt>$ </prompt>bitbake -g -I virtual/whatever -I bloom blah</screen>
</example>
</para>
</section>
<section>
+ <title>Special variables</title>
+ <para>Certain variables affect bitbake operation:</para>
+ <section>
+ <title><varname>BB_NUMBER_THREADS</varname></title>
+ <para> The number of threads bitbake should run at once (default: 1).</para>
+ </section>
+ </section>
+ <section>
<title>Metadata</title>
<para>As you may have seen in the usage information, or in the information about .bb files, the BBFILES variable is how the bitbake tool locates its files. This variable is a space seperated list of files that are available, and supports wildcards.
<example>
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 6ce8e7949..c12eda25f 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -21,7 +21,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-__version__ = "1.8.3"
+__version__ = "1.8.5"
__all__ = [