bitbake: bitbake-user-manual: New section on functions you can call from Python
Fixes [YOCTO #10100] I added a new parent directory named "Functions You Can Call From Within Python". This section contains a couple new sub-sections. One is the existing "Functions for Accessing Datastore Variables". The other is called "Other Functions", and it is used to point or reference some commonly used functions that the user can call from within Python. (Bitbake rev: ecbcedd74125ef00599f4af384ee303dae8af5b7) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5503ed14ed
commit
39828d3ccc
|
@ -1228,7 +1228,7 @@
|
|||
</literallayout>
|
||||
For methods you can use with anonymous Python functions,
|
||||
see the
|
||||
"<link linkend='accessing-datastore-variables-using-python'>Accessing Datastore Variables Using Python</link>"
|
||||
"<link linkend='functions-you-can-call-from-within-python'>Functions You Can Call From Within Python</link>"
|
||||
section.
|
||||
For a different method to run Python code during parsing,
|
||||
see the
|
||||
|
@ -2082,8 +2082,18 @@
|
|||
</section>
|
||||
</section>
|
||||
|
||||
<section id='accessing-datastore-variables-using-python'>
|
||||
<title>Accessing Datastore Variables Using Python</title>
|
||||
<section id='functions-you-can-call-from-within-python'>
|
||||
<title>Functions You Can Call From Within Python</title>
|
||||
|
||||
<para>
|
||||
BitBake provides many functions you can call from
|
||||
within Python functions.
|
||||
This section lists the most commonly used functions,
|
||||
and mentions where to find others.
|
||||
</para>
|
||||
|
||||
<section id='functions-for-accessing-datastore-variables'>
|
||||
<title>Functions for Accessing Datastore Variables</title>
|
||||
|
||||
<para>
|
||||
It is often necessary to access variables in the
|
||||
|
@ -2180,6 +2190,24 @@
|
|||
</para>
|
||||
</section>
|
||||
|
||||
<section id='other-functions'>
|
||||
<title>Other Functions</title>
|
||||
|
||||
<para>
|
||||
You can find many other functions that can be called
|
||||
from Python by looking at the source code of the
|
||||
<filename>bb</filename> module, which is in
|
||||
<filename>bitbake/lib/bb</filename>.
|
||||
For example,
|
||||
<filename>bitbake/lib/bb/utils.py</filename> includes
|
||||
the commonly used functions
|
||||
<filename>bb.utils.contains()</filename> and
|
||||
<filename>bb.utils.mkdirhier()</filename>, which come
|
||||
with docstrings.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id='task-checksums-and-setscene'>
|
||||
<title>Task Checksums and Setscene</title>
|
||||
|
||||
|
|
Loading…
Reference in New Issue