summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-classes.xml
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-12-09 14:43:18 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-11 14:18:25 +0000
commit7b0e4fb0674189c21a0046bb1208ec85c7ea7190 (patch)
treee6a1c0b0786b343a5c8dd8ec2f8cb8f3967a6fa2 /documentation/ref-manual/ref-classes.xml
parent179e55d619a0d8a88a3fbf337a52948d8060832f (diff)
downloadpoky-7b0e4fb0674189c21a0046bb1208ec85c7ea7190.tar.gz
ref-manual: Review edits from "I" through "Z" classes.
icecc - added link to Icecream. images - added some reference links to the end of the section. logging - added closing ")" character. nativesdk - corrected the mis-copied recipe name. own-mirrors - fixed the class name so it was not "ownmirrors". package - minor tweak to indicate class. Also spelled Berkeley correctly. package_deb, package_ipk, and package_rpm - dumped a note and mentioned that you need PACKAGE_CLASSES to enable the class. package_tar - noted that the recipe inheriting the tar class is what does the trick here. pixbufcache - minor edits populate_sdk - minor edits prserv - edits to tell how it is enabled. pythonnative - re-worded it. rootfs* - reworded. rootfs_deb, rootfs_ipk, and rootfs_rpm - Brand new. systemd - reworded. terminal - rewording useradd - reworded (From yocto-docs rev: 110c192499a0e349b317e51aeca1a391c35785fc) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/ref-classes.xml')
-rw-r--r--documentation/ref-manual/ref-classes.xml192
1 files changed, 127 insertions, 65 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index d38071e122..555918e80a 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -902,9 +902,10 @@
902 <title><filename>icecc.bbclass</filename></title> 902 <title><filename>icecc.bbclass</filename></title>
903 903
904 <para> 904 <para>
905 The <filename>icecc</filename> class supports Icecream, which 905 The <filename>icecc</filename> class supports
906 <ulink url='https://github.com/icecc/icecream'>Icecream</ulink>, which
906 facilitates taking compile jobs and distributing them among remote 907 facilitates taking compile jobs and distributing them among remote
907 machines to achieve parallelism during the build. 908 machines.
908 </para> 909 </para>
909 910
910 <para> 911 <para>
@@ -996,9 +997,10 @@
996 variable controls the list of packages to install into the 997 variable controls the list of packages to install into the
997 image.</para></listitem> 998 image.</para></listitem>
998 </itemizedlist> 999 </itemizedlist>
999 For more information on customizing images, see the 1000 For information on customizing images, see the
1000 "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-extend-customimage'>Customizing Images</ulink>" 1001 "<ulink url='&YOCTO_DOCS_DEV_URL;#usingpoky-extend-customimage'>Customizing Images</ulink>"
1001 section in the Yocto Project Development Manual and the 1002 section in the Yocto Project Development Manual.
1003 For information on how images are created, see the
1002 "<link linkend='images-dev-environment'>Images</link>" section elsewhere 1004 "<link linkend='images-dev-environment'>Images</link>" section elsewhere
1003 in this manual. 1005 in this manual.
1004 </para> 1006 </para>
@@ -1603,7 +1605,7 @@
1603 shell functions used to log messages for various BitBake severity levels 1605 shell functions used to log messages for various BitBake severity levels
1604 (i.e. <filename>bbplain</filename>, <filename>bbnote</filename>, 1606 (i.e. <filename>bbplain</filename>, <filename>bbnote</filename>,
1605 <filename>bbwarn</filename>, <filename>bberror</filename>, 1607 <filename>bbwarn</filename>, <filename>bberror</filename>,
1606 <filename>bbfatal</filename>, and <filename>bbdebug</filename>. 1608 <filename>bbfatal</filename>, and <filename>bbdebug</filename>).
1607 </para> 1609 </para>
1608 1610
1609 <para> 1611 <para>
@@ -1739,7 +1741,7 @@
1739 You can create a recipe that builds tools that run on the SDK machine 1741 You can create a recipe that builds tools that run on the SDK machine
1740 a couple different ways: 1742 a couple different ways:
1741 <itemizedlist> 1743 <itemizedlist>
1742 <listitem><para>Create a <filename>myrecipe-native.bb</filename> 1744 <listitem><para>Create a <filename>myrecipe-nativesdk.bb</filename>
1743 recipe that inherits the <filename>nativesdk</filename> class. 1745 recipe that inherits the <filename>nativesdk</filename> class.
1744 </para></listitem> 1746 </para></listitem>
1745 <listitem><para>Create a <filename>nativesdk</filename> variant 1747 <listitem><para>Create a <filename>nativesdk</filename> variant
@@ -1783,11 +1785,11 @@
1783 </para> 1785 </para>
1784</section> 1786</section>
1785 1787
1786<section id='ref-classes-ownmirrors'> 1788<section id='ref-classes-own-mirrors'>
1787 <title><filename>ownmirrors.bbclass</filename></title> 1789 <title><filename>own-mirrors.bbclass</filename></title>
1788 1790
1789 <para> 1791 <para>
1790 The <filename>ownmirrors</filename> class makes it 1792 The <filename>own-mirrors</filename> class makes it
1791 easier to set up your own 1793 easier to set up your own
1792 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link> 1794 <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
1793 from which to first fetch source before attempting to fetch it from the 1795 from which to first fetch source before attempting to fetch it from the
@@ -1813,7 +1815,7 @@
1813 <title><filename>package.bbclass</filename></title> 1815 <title><filename>package.bbclass</filename></title>
1814 1816
1815 <para> 1817 <para>
1816 The <filename>package</filename> supports generating 1818 The <filename>package</filename> class supports generating
1817 packages from a build's output. 1819 packages from a build's output.
1818 The core generic functionality is in 1820 The core generic functionality is in
1819 <filename>package.bbclass</filename>. 1821 <filename>package.bbclass</filename>.
@@ -1877,7 +1879,7 @@
1877 ACID style upgrade, and repackaging abilities for rollbacks. 1879 ACID style upgrade, and repackaging abilities for rollbacks.
1878 </para></listitem> 1880 </para></listitem>
1879 <listitem><para> 1881 <listitem><para>
1880 For smaller systems, the extra space used for the Berkley 1882 For smaller systems, the extra space used for the Berkeley
1881 Database and the amount of metadata when using RPM can affect 1883 Database and the amount of metadata when using RPM can affect
1882 your ability to perform on-device upgrades. 1884 your ability to perform on-device upgrades.
1883 </para></listitem> 1885 </para></listitem>
@@ -1906,11 +1908,14 @@
1906 The class ensures the packages are written out to the 1908 The class ensures the packages are written out to the
1907 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/deb</filename> 1909 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/deb</filename>
1908 directory in a <filename>.deb</filename> file format. 1910 directory in a <filename>.deb</filename> file format.
1909 <note> 1911 </para>
1910 This package inherits the 1912
1911 <link linkend='ref-classes-package'><filename>package</filename></link> 1913 <para>
1912 class. 1914 This class inherits the
1913 </note> 1915 <link linkend='ref-classes-package'><filename>package</filename></link>
1916 class and is enabled through the
1917 <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
1918 variable in the <filename>local.conf</filename> file.
1914 </para> 1919 </para>
1915</section> 1920</section>
1916 1921
@@ -1924,11 +1929,14 @@
1924 The class ensures the packages are written out to the 1929 The class ensures the packages are written out to the
1925 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/ipk</filename> 1930 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/ipk</filename>
1926 directory in a <filename>.ipk</filename> file format. 1931 directory in a <filename>.ipk</filename> file format.
1927 <note> 1932 </para>
1928 This package inherits the 1933
1929 <link linkend='ref-classes-package'><filename>package</filename></link> 1934 <para>
1930 class. 1935 This class inherits the
1931 </note> 1936 <link linkend='ref-classes-package'><filename>package</filename></link>
1937 class and is enabled through the
1938 <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
1939 variable in the <filename>local.conf</filename> file.
1932 </para> 1940 </para>
1933</section> 1941</section>
1934 1942
@@ -1942,11 +1950,14 @@
1942 The class ensures the packages are written out to the 1950 The class ensures the packages are written out to the
1943 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/rpm</filename> 1951 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/rpm</filename>
1944 directory in a <filename>.rpm</filename> file format. 1952 directory in a <filename>.rpm</filename> file format.
1945 <note> 1953 </para>
1946 This package inherits the 1954
1947 <link linkend='ref-classes-package'><filename>package</filename></link> 1955 <para>
1948 class. 1956 This class inherits the
1949 </note> 1957 <link linkend='ref-classes-package'><filename>package</filename></link>
1958 class and is enabled through the
1959 <link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>
1960 variable in the <filename>local.conf</filename> file.
1950 </para> 1961 </para>
1951</section> 1962</section>
1952 1963
@@ -1960,11 +1971,12 @@
1960 The class ensures the packages are written out to the 1971 The class ensures the packages are written out to the
1961 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/tar</filename> 1972 <filename>${</filename><link linkend='var-DEPLOY_DIR'><filename>DEPLOY_DIR</filename></link><filename>}/tar</filename>
1962 directory in a <filename>.tar</filename> file format. 1973 directory in a <filename>.tar</filename> file format.
1963 <note> 1974 </para>
1964 This package inherits the 1975
1965 <link linkend='ref-classes-package'><filename>package</filename></link> 1976 <para>
1966 class. 1977 This class inherits the
1967 </note> 1978 <link linkend='ref-classes-package'><filename>package</filename></link>
1979 class and is for a given recipe when the recipe inherits the class.
1968 </para> 1980 </para>
1969</section> 1981</section>
1970 1982
@@ -2061,7 +2073,7 @@
2061 that install pixbuf loaders, which are used with 2073 that install pixbuf loaders, which are used with
2062 <filename>gdk-pixbuf</filename>. 2074 <filename>gdk-pixbuf</filename>.
2063 These scriptlets call <filename>update_pixbuf_cache</filename> 2075 These scriptlets call <filename>update_pixbuf_cache</filename>
2064 to add the input method modules to the cache. 2076 to add the pixbuf loaders to the cache.
2065 Since the cache files are architecture-specific, 2077 Since the cache files are architecture-specific,
2066 <filename>update_pixbuf_cache</filename> is run using QEMU if the 2078 <filename>update_pixbuf_cache</filename> is run using QEMU if the
2067 postinst scriptlets need to be run on the build host during image 2079 postinst scriptlets need to be run on the build host during image
@@ -2072,7 +2084,7 @@
2072 If the pixbuf loaders modules being installed are in packages other 2084 If the pixbuf loaders modules being installed are in packages other
2073 than the main package, set 2085 than the main package, set
2074 <link linkend='var-PIXBUF_PACKAGES'><filename>PIXBUF_PACKAGES</filename></link> 2086 <link linkend='var-PIXBUF_PACKAGES'><filename>PIXBUF_PACKAGES</filename></link>
2075 to include the packages containing the modules. 2087 to specify the packages containing the modules.
2076 </para> 2088 </para>
2077</section> 2089</section>
2078 2090
@@ -2098,8 +2110,8 @@
2098 <title><filename>populate_sdk.bbclass</filename></title> 2110 <title><filename>populate_sdk.bbclass</filename></title>
2099 2111
2100 <para> 2112 <para>
2101 The <filename>populate_sdk</filename> class facilitates compatibility 2113 The <filename>populate_sdk</filename> class provides support for
2102 with SDK-only recipes. 2114 SDK-only recipes.
2103 </para> 2115 </para>
2104</section> 2116</section>
2105 2117
@@ -2212,8 +2224,8 @@
2212 This class is enabled by default because it is inherited by the 2224 This class is enabled by default because it is inherited by the
2213 <link linkend='ref-classes-package'><filename>package</filename></link> 2225 <link linkend='ref-classes-package'><filename>package</filename></link>
2214 class. 2226 class.
2215 However, the OpenEmbedded build system will not use this variable 2227 However, the OpenEmbedded build system will not enable the
2216 unless 2228 functionality of this class unless
2217 <link linkend='var-PRSERV_HOST'><filename>PRSERV_HOST</filename></link> 2229 <link linkend='var-PRSERV_HOST'><filename>PRSERV_HOST</filename></link>
2218 has been set. 2230 has been set.
2219 </para> 2231 </para>
@@ -2253,11 +2265,9 @@
2253 <title><filename>pythonnative.bbclass</filename></title> 2265 <title><filename>pythonnative.bbclass</filename></title>
2254 2266
2255 <para> 2267 <para>
2256 The <filename>pythonnative</filename> causes the OpenEmbedded build 2268 When inherited by a recipe, the <filename>pythonnative</filename> class
2257 system to use the native version of Python, which is built by the 2269 supports using the native version of Python built by the build system
2258 build system. 2270 rather than using the version provided by the build host.
2259 Normally, the OpenEmbedded build system uses the version of Python
2260 that is built by the build host.
2261 <note> 2271 <note>
2262 This class must be inherited by a recipe in order to be used. 2272 This class must be inherited by a recipe in order to be used.
2263 </note> 2273 </note>
@@ -2399,21 +2409,72 @@
2399 2409
2400 <para> 2410 <para>
2401 The <filename>rootfs*</filename> classes add support for creating 2411 The <filename>rootfs*</filename> classes add support for creating
2402 images in several formats and consist of the following: 2412 the root filesystem in either <filename>.ext3</filename> or
2413 <filename>tar.bz2</filename> formats and consist of the following
2414 classes:
2403 <itemizedlist> 2415 <itemizedlist>
2404 <listitem><para>The 2416 <listitem><para>The
2405 <filename><link linkend='var-IMAGE_FSTYPES'>IMAGE_FSTYPES</link></filename> 2417 <link linkend='ref-classes-rootfs_deb'><filename>rootfs_deb</filename></link>
2406 variable controls the types of images to generate. 2418 class.</para></listitem>
2407 </para></listitem>
2408 <listitem><para>The 2419 <listitem><para>The
2409 <filename><link linkend='var-IMAGE_INSTALL'>IMAGE_INSTALL</link></filename> 2420 <link linkend='ref-classes-rootfs_rpm'><filename>rootfs_rpm</filename></link>
2410 variable controls the list of packages to install into the 2421 class.</para></listitem>
2411 image.</para></listitem> 2422 <listitem><para>The
2423 <link linkend='ref-classes-rootfs_ipk'><filename>rootfs_ipk</filename></link>
2424 class.</para></listitem>
2412 </itemizedlist> 2425 </itemizedlist>
2413 First, the root filesystem is created from packages using 2426 </para>
2414 one of the <filename>rootfs_*.bbclass</filename> 2427
2415 files (depending on the package format used) and then the image 2428 <para>
2416 is created. 2429 The root filesystem is created from packages using one of the
2430 <filename>rootfs_*.bbclass</filename> files as determined by the
2431 <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
2432 variable.
2433 </para>
2434
2435 <para>
2436 For information on how root filesystem images are created, see the
2437 "<link linkend='image-generation-dev-environment'>Image Generation</link>"
2438 section.
2439 </para>
2440</section>
2441
2442<section id='ref-classes-rootfs_deb'>
2443 <title><filename>rootfs_deb.bbclass</filename></title>
2444
2445 <para>
2446 The <filename>rootfs_deb</filename> class supports creation of
2447 root filesystems for images built using <filename>.deb</filename>
2448 packages.
2449 See the
2450 "<link linkend='ref-classes-rootfs*'><filename>rootfs*.bbclass</filename></link>"
2451 section for more information.
2452 </para>
2453</section>
2454
2455<section id='ref-classes-rootfs_ipk'>
2456 <title><filename>rootfs_ipk.bbclass</filename></title>
2457
2458 <para>
2459 The <filename>rootfs_ipk</filename> class supports creation of
2460 root filesystems for images built using <filename>.ipk</filename>
2461 packages.
2462 See the
2463 "<link linkend='ref-classes-rootfs*'><filename>rootfs*.bbclass</filename></link>"
2464 section for more information.
2465 </para>
2466</section>
2467
2468<section id='ref-classes-rootfs_rpm'>
2469 <title><filename>rootfs_rpm.bbclass</filename></title>
2470
2471 <para>
2472 The <filename>rootfs_rpm</filename> class supports creation of
2473 root filesystems for images built using <filename>.rpm</filename>
2474 packages.
2475 See the
2476 "<link linkend='ref-classes-rootfs*'><filename>rootfs*.bbclass</filename></link>"
2477 section for more information.
2417 </para> 2478 </para>
2418</section> 2479</section>
2419 2480
@@ -2458,7 +2519,7 @@
2458 2519
2459 <para> 2520 <para>
2460 The <filename>setuptools</filename> class supports extensions that use 2521 The <filename>setuptools</filename> class supports extensions that use
2461 setuptools-based build systems. 2522 setuptools-based build systems making use of Python.
2462 If your recipe uses these build systems, the recipe needs to 2523 If your recipe uses these build systems, the recipe needs to
2463 inherit the <filename>setuptools</filename> class. 2524 inherit the <filename>setuptools</filename> class.
2464 </para> 2525 </para>
@@ -2631,9 +2692,10 @@
2631 </para> 2692 </para>
2632 2693
2633 <para> 2694 <para>
2634 Under this class, unit files are installed into 2695 Under this class, the recipe or Makefile (i.e. whatever the recipe is
2635 <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}${systemd_unitdir}/system</filename> 2696 calling during the <filename>do_install</filename> task) installs unit
2636 during the <filename>do_install</filename> task. 2697 files into
2698 <filename>${</filename><link linkend='var-D'><filename>D</filename></link><filename>}${systemd_unitdir}/system</filename>.
2637 If the unit files being installed go into packages other than the 2699 If the unit files being installed go into packages other than the
2638 main package, you need to set 2700 main package, you need to set
2639 <link linkend='var-SYSTEMD_PACKAGES'><filename>SYSTEMD_PACKAGES</filename></link> 2701 <link linkend='var-SYSTEMD_PACKAGES'><filename>SYSTEMD_PACKAGES</filename></link>
@@ -2678,9 +2740,9 @@
2678 </para> 2740 </para>
2679 2741
2680 <para> 2742 <para>
2681 You can use this class anywhere a separate terminal session needs to 2743 Other classes use the <filename>terminal</filename> class anywhere a
2682 be started. 2744 separate terminal session needs to be started.
2683 To use the class, include the 2745 The class is used by including the
2684 <link linkend='ref-classes-patch'><filename>patch</filename></link> 2746 <link linkend='ref-classes-patch'><filename>patch</filename></link>
2685 class if 2747 class if
2686 <link linkend='var-PATCHRESOLVE'><filename>PATCHRESOLVE</filename></link> 2748 <link linkend='var-PATCHRESOLVE'><filename>PATCHRESOLVE</filename></link>
@@ -2867,11 +2929,11 @@
2867 <title><filename>useradd.bbclass</filename></title> 2929 <title><filename>useradd.bbclass</filename></title>
2868 2930
2869 <para> 2931 <para>
2870 The <filename>useradd</filename> class supports recipes that restrict 2932 The <filename>useradd</filename> class supports the addition of users
2871 packages to certain users or groups. 2933 or groups for usage by the package on the target.
2872 For example, if you have packages that install files that are owned 2934 For example, if you have packages that contain system services that
2873 by custom users or groups, you can use this class to specify 2935 should be run under their own user or group, you can use this class to
2874 those packages and then associate them with the users and groups. 2936 enable creation of the user or group.
2875 The <filename>meta-skeleton/recipes-skeleton/useradd/useradd-example.bb</filename> 2937 The <filename>meta-skeleton/recipes-skeleton/useradd/useradd-example.bb</filename>
2876 recipe in the <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink> 2938 recipe in the <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
2877 provides a simple example that shows how to add three 2939 provides a simple example that shows how to add three