1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

ref-manual: Updated the INITRAMFS_IMAGE variable.

Fixes [YOCTO #10012]

Updated the description completely.  New more detailed information.

(From yocto-docs rev: cb6ce91674ab092324f97ca4e56a0cbcd9140fbe)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2016-07-29 11:16:05 -07:00
committed by Richard Purdie
parent dfd845a126
commit ffdba3fafb
+37 -30
View File
@@ -6078,47 +6078,54 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
<glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm> <glossentry id='var-INITRAMFS_IMAGE'><glossterm>INITRAMFS_IMAGE</glossterm>
<info> <info>
INITRAMFS_IMAGE[doc] = "Causes the OpenEmbedded build system to build an additional recipe as a dependency to your root filesystem recipe (e.g. core-image-sato)." INITRAMFS_IMAGE[doc] = "Specifies the PROVIDES name of an image recipe that is used to build an initial RAM disk (initramfs) image."
</info> </info>
<glossdef> <glossdef>
<para role="glossdeffirst"> <para role="glossdeffirst">
<!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> --> <!-- <para role="glossdeffirst"><imagedata fileref="figures/define-generic.png" /> -->
Causes the OpenEmbedded build system to build an additional Specifies the
recipe as a dependency to your root filesystem recipe <link linkend='var-PROVIDES'><filename>PROVIDES</filename></link>
(e.g. <filename>core-image-sato</filename>). name of an image recipe that is used to build an initial
The additional recipe is used to create an initial RAM disk RAM disk (initramfs) image.
(initramfs) that might be needed during the initial boot of An initramfs provides a temporary root filesystem used for
the target system to accomplish such things as loading early system initialization (e.g. loading of modules
kernel modules prior to mounting the root file system. needed to locate and mount the "real" root filesystem).
The specified recipe is added as a dependency of the root
filesystem recipe (e.g.
<filename>core-image-sato</filename>).
See the <filename>core-image-sato-initramfs.bb</filename>
recipe, which is created, for an example recipe.
<note>
The initramfs image recipe should set
<link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
to
<link linkend='var-INITRAMFS_FSTYPES'><filename>INITRAMFS_FSTYPES</filename></link>.
</note>
</para> </para>
<para> <para>
When you set the variable, specify the name of the You can also find more information by referencing the
initramfs you want created. <filename>meta/poky/conf/local.conf.sample.extended</filename>
The following example, which is set in the configuration file in the
<filename>local.conf</filename> configuration file, causes <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>,
a separate recipe to be created that results in an the
initramfs image named <link linkend='ref-classes-image'><filename>image</filename></link>
<filename>core-image-sato-initramfs.bb</filename> to be class, and the
created:
<literallayout class='monospaced'>
INITRAMFS_IMAGE = "core-image-minimal-initramfs"
</literallayout>
By default, the
<link linkend='ref-classes-kernel'><filename>kernel</filename></link> <link linkend='ref-classes-kernel'><filename>kernel</filename></link>
class sets this variable to a null string as follows: class to see how to use the
<literallayout class='monospaced'> <filename>INITRAMFS_IMAGE</filename> variable.
INITRAMFS_IMAGE = ""
</literallayout>
</para> </para>
<para> <para>
See the If <filename>INITRAMFS_IMAGE</filename> is empty, which is
<ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta-poky/conf/local.conf.sample.extended'><filename>local.conf.sample.extended</filename></ulink> the default, then no initramfs is built.
file for additional information. </para>
You can also reference the
<ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass'><filename>kernel.bbclass</filename></ulink> <para>
file to see how the variable is used. Finally, for more information you can also see the
<link linkend='var-INITRAMFS_IMAGE_BUNDLE'><filename>INITRAMFS_IMAGE_BUNDLE</filename></link>
variable, which allows the generated image to be bundled
inside the kernel image.
</para> </para>
</glossdef> </glossdef>
</glossentry> </glossentry>