From ffdba3fafbe05278cd85ec1100f090b52a670708 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 29 Jul 2016 11:16:05 -0700 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 67 ++++++++++++---------- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 4316ea5dc6..973a761b95 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -6078,47 +6078,54 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" INITRAMFS_IMAGE - 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." - Causes the OpenEmbedded build system to build an additional - recipe as a dependency to your root filesystem recipe - (e.g. core-image-sato). - The additional recipe is used to create an initial RAM disk - (initramfs) that might be needed during the initial boot of - the target system to accomplish such things as loading - kernel modules prior to mounting the root file system. + Specifies the + PROVIDES + name of an image recipe that is used to build an initial + RAM disk (initramfs) image. + An initramfs provides a temporary root filesystem used for + early system initialization (e.g. loading of modules + needed to locate and mount the "real" root filesystem). + The specified recipe is added as a dependency of the root + filesystem recipe (e.g. + core-image-sato). + See the core-image-sato-initramfs.bb + recipe, which is created, for an example recipe. + + The initramfs image recipe should set + IMAGE_FSTYPES + to + INITRAMFS_FSTYPES. + - When you set the variable, specify the name of the - initramfs you want created. - The following example, which is set in the - local.conf configuration file, causes - a separate recipe to be created that results in an - initramfs image named - core-image-sato-initramfs.bb to be - created: - - INITRAMFS_IMAGE = "core-image-minimal-initramfs" - - By default, the + You can also find more information by referencing the + meta/poky/conf/local.conf.sample.extended + configuration file in the + Source Directory, + the + image + class, and the kernel - class sets this variable to a null string as follows: - - INITRAMFS_IMAGE = "" - + class to see how to use the + INITRAMFS_IMAGE variable. - See the - local.conf.sample.extended - file for additional information. - You can also reference the - kernel.bbclass - file to see how the variable is used. + If INITRAMFS_IMAGE is empty, which is + the default, then no initramfs is built. + + + + Finally, for more information you can also see the + INITRAMFS_IMAGE_BUNDLE + variable, which allows the generated image to be bundled + inside the kernel image.