[yocto] is there really an "INITRD_IMAGE" variable?

Robert P. J. Day rpjday at crashcourse.ca
Wed Jun 22 03:03:03 PDT 2016


  (asked about this on the OE list recently, but no response, so i'll
harass this list.)

  poking around initramfs content and recipes, and noticed this in the
latest poky checkout:

$ grep -rw INITRD_IMAGE *
documentation/ref-manual/ref-variables.xml:        <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
documentation/ref-manual/ref-variables.xml:                INITRD_IMAGE[doc] = "When building a "live" bootable image (i.e. when IMAGE_FSTYPES contains "live"), INITRD_IMAGE specifies the image recipe that should be built to provide the initial RAM disk image."
documentation/ref-manual/ref-variables.xml:                    contains "live"), <filename>INITRD_IMAGE</filename>
meta/recipes-extended/images/core-image-testmaster.bb:INITRD_IMAGE = "core-image-testmaster-initramfs"
$

  so ... a bit of documentation on the alleged variable INITRD_IMAGE,
and a single assignment, and no usage.

  but if i drop the requirement that it be a word:

$ grep -r INITRD_IMAGE *
documentation/ref-manual/ref-variables.xml:        <glossentry id='var-INITRD_IMAGE'><glossterm>INITRD_IMAGE</glossterm>
documentation/ref-manual/ref-variables.xml:                INITRD_IMAGE[doc] = "When building a "live" bootable image (i.e. when IMAGE_FSTYPES contains "live"), INITRD_IMAGE specifies the image recipe that should be built to provide the initial RAM disk image."
documentation/ref-manual/ref-variables.xml:                    contains "live"), <filename>INITRD_IMAGE</filename>
meta/recipes-extended/images/core-image-testmaster.bb:INITRD_IMAGE = "core-image-testmaster-initramfs"
meta/classes/image-vm.bbclass:# Using an initramfs is optional. Enable it by setting INITRD_IMAGE_VM.
meta/classes/image-vm.bbclass:INITRD_IMAGE_VM ?= ""
meta/classes/image-vm.bbclass:INITRD_VM ?= "${@'${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_VM}-${MACHINE}.cpio.gz' if '${INITRD_IMAGE_VM}' else ''}"
meta/classes/image-vm.bbclass:do_bootdirectdisk[depends] += "${@'${INITRD_IMAGE_VM}:do_image_complete' if '${INITRD_IMAGE_VM}' else ''}"
meta/classes/image-live.bbclass:INITRD_IMAGE_LIVE ?= "core-image-minimal-initramfs"
meta/classes/image-live.bbclass:INITRD_LIVE ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.cpio.gz"
meta/classes/image-live.bbclass:    initrd_i = d.getVar('INITRD_IMAGE_LIVE', True)
meta/classes/image-live.bbclass:        bb.error('INITRD_IMAGE_LIVE %s cannot use image live, hddimg or iso.' % initrd_i)
$

suddenly, i see references to "INITRD_IMAGE_VM" and
"INITRD_IMAGE_LIVE". so is "INITRD_IMAGE" correct? i don't see how
that makes sense unless "VM" and "LIVE" are some weird form of
override.

  thoughts?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the yocto mailing list