summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-11-27 10:12:50 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 12:53:30 +0000
commitd2d4febc89407c9f12ab053753530fa2102531d2 (patch)
treef2d5836d2ebd31d7f7b2431791bd9558d1f835f0
parent37802407f882af7f488a5933409474e6ff4b5f6a (diff)
downloadast2050-yocto-poky-d2d4febc89407c9f12ab053753530fa2102531d2.zip
ast2050-yocto-poky-d2d4febc89407c9f12ab053753530fa2102531d2.tar.gz
ref-manual: Added fontcache class and FONT_PACKAGES variable.
(From yocto-docs rev: 5d0cd87e45155236cd72b02267d5d081654bc2d3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/ref-classes.xml23
-rw-r--r--documentation/ref-manual/ref-variables.xml15
2 files changed, 38 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index 9752767..5aae51e 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -573,6 +573,29 @@
</para>
</section>
+<section id='ref-classes-fontcache'>
+ <title><filename>fontcache.bbclass</filename></title>
+
+ <para>
+ The font cache (<filename>fontcache</filename>) class generates the
+ proper post-installation and post-remove (postinst and postrm)
+ scriptlets for font packages.
+ These scriptlets call <filename>fc-cache</filename> (part of
+ <filename>Fontconfig</filename>) to add the fonts to the font
+ information cache.
+ Since the cache files are architecture-specific,
+ <filename>fc-cache</filename> runs using QEMU if the postinst
+ scriptlets need to be run on the build host during image creation.
+ </para>
+
+ <para>
+ If the fonts being installed are in packages other than the main
+ package, set
+ <link linkend='var-FONT_PACKAGES'><filename>FONT_PACKAGES</filename></link>
+ to include the packages containing the fonts.
+ </para>
+</section>
+
<section id='ref-classes-debian'>
<title>Debian Renaming - <filename>debian.bbclass</filename></title>
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 70d5108..048d440 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -2065,6 +2065,21 @@
</glossdef>
</glossentry>
+ <glossentry id='var-FONT_PACKAGES'><glossterm>FONT_PACKAGES</glossterm>
+ <glossdef>
+ <para>
+ When a recipe inherits the
+ <link linkend='ref-classes-fontcache'><filename>fontcache</filename></link>
+ class, this variable identifies packages that contain fonts
+ the OpenEmbedded build system installs.
+ By default, installed fonts appear in the main package
+ (i.e. <filename>${</filename><link linkend='var-PN'><filename>PN</filename></link><filename>}</filename>).
+ Use this variable if fonts you need appear in a package
+ other than that main package.
+ </para>
+ </glossdef>
+ </glossentry>
+
<glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
<glossdef>
<para>
OpenPOWER on IntegriCloud