summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <bluelightning@bluelightning.org>2023-04-22 15:19:39 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-22 10:59:12 +0100
commitc3c439d62ab3208bc3f786a0dd82d1290486c289 (patch)
tree7541cd91255bc290b071bd450ac369efac596324
parentbdf37e43b09ab0f9529bf77b691667c71591ba1c (diff)
downloadpoky-c3c439d62ab3208bc3f786a0dd82d1290486c289.tar.gz
ref-manual: update for IMAGE_MACHINE_SUFFIX addition
IMAGE_MACHINE_SUFFIX is a new variable in 4.2, and there were some associated changes to how IMAGE_NAME, IMAGE_LINK_NAME, INITRAMFS_IMAGE_NAME and KERNEL_ARTIFACT_NAME are set by default. As a result, instead of repeating how KERNEL_ARTIFACT_NAME is set by default, let's just direct people to the entry for that variable so we only have to update one place. At the same time I noticed INITRAMFS_IMAGE_NAME was not documented at all, so add that in. (From yocto-docs rev: d53bf2878a268fb71785c73053e3657436f3f5ba) Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/variables.rst81
1 files changed, 50 insertions, 31 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 900fdf9741..15f33dcf9f 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -3583,11 +3583,34 @@ system and gives an overview of their function and contents.
3583 :term:`IMAGE_LINK_NAME` 3583 :term:`IMAGE_LINK_NAME`
3584 The name of the output image symlink (which does not include 3584 The name of the output image symlink (which does not include
3585 the version part as :term:`IMAGE_NAME` does). The default value 3585 the version part as :term:`IMAGE_NAME` does). The default value
3586 is derived using the :term:`IMAGE_BASENAME` and :term:`MACHINE` 3586 is derived using the :term:`IMAGE_BASENAME` and
3587 variables:: 3587 :term:`IMAGE_MACHINE_SUFFIX` variables::
3588 3588
3589 IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}-${MACHINE}" 3589 IMAGE_LINK_NAME ?= "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}"
3590 3590
3591 .. note::
3592
3593 It is possible to set this to "" to disable symlink creation,
3594 however, you also need to set :term:`IMAGE_NAME` to still have
3595 a reasonable value e.g.::
3596
3597 IMAGE_LINK_NAME = ""
3598 IMAGE_NAME = "${IMAGE_BASENAME}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
3599
3600 :term:`IMAGE_MACHINE_SUFFIX`
3601 Specifies the by default machine-specific suffix for image file names
3602 (before the extension). The default value is set as follows::
3603
3604 IMAGE_MACHINE_SUFFIX ??= "-${MACHINE}"
3605
3606 The default :term:`DEPLOY_DIR_IMAGE` already has a :term:`MACHINE`
3607 subdirectory, so you may find it unnecessary to also include this suffix
3608 in the name of every image file. If you prefer to remove the suffix you
3609 can set this variable to an empty string::
3610
3611 IMAGE_MACHINE_SUFFIX = ""
3612
3613 (Not to be confused with :term:`IMAGE_NAME_SUFFIX`.)
3591 3614
3592 :term:`IMAGE_MANIFEST` 3615 :term:`IMAGE_MANIFEST`
3593 The manifest file for the image. This file lists all the installed 3616 The manifest file for the image. This file lists all the installed
@@ -3608,12 +3631,11 @@ system and gives an overview of their function and contents.
3608 section in the Yocto Project Overview and Concepts Manual. 3631 section in the Yocto Project Overview and Concepts Manual.
3609 3632
3610 :term:`IMAGE_NAME` 3633 :term:`IMAGE_NAME`
3611 The name of the output image files minus the extension. This variable 3634 The name of the output image files minus the extension. By default
3612 is derived using the :term:`IMAGE_BASENAME`, 3635 this variable is set using the :term:`IMAGE_LINK_NAME`, and
3613 :term:`MACHINE`, and :term:`IMAGE_VERSION_SUFFIX` 3636 :term:`IMAGE_VERSION_SUFFIX` variables::
3614 variables::
3615 3637
3616 IMAGE_NAME ?= "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" 3638 IMAGE_NAME ?= "${IMAGE_LINK_NAME}${IMAGE_VERSION_SUFFIX}"
3617 3639
3618 :term:`IMAGE_NAME_SUFFIX` 3640 :term:`IMAGE_NAME_SUFFIX`
3619 Suffix used for the image output filename --- defaults to ``".rootfs"`` 3641 Suffix used for the image output filename --- defaults to ``".rootfs"``
@@ -4140,6 +4162,19 @@ system and gives an overview of their function and contents.
4140 :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section 4162 :term:`Initramfs`, see the ":ref:`dev-manual/building:building an initial ram filesystem (Initramfs) image`" section
4141 in the Yocto Project Development Tasks Manual. 4163 in the Yocto Project Development Tasks Manual.
4142 4164
4165 :term:`INITRAMFS_IMAGE_NAME`
4166
4167 This value needs to stay in sync with :term:`IMAGE_LINK_NAME`, but with
4168 :term:`INITRAMFS_IMAGE` instead of :term:`IMAGE_BASENAME`. The default value
4169 is set as follows:
4170
4171 INITRAMFS_IMAGE_NAME ?= "${@['${INITRAMFS_IMAGE}${IMAGE_MACHINE_SUFFIX}', ''][d.getVar('INITRAMFS_IMAGE') == '']}"
4172
4173 That is, if :term:`INITRAMFS_IMAGE` is set, the value of
4174 :term:`INITRAMFS_IMAGE_NAME` will be set based upon
4175 :term:`INITRAMFS_IMAGE` and :term:`IMAGE_MACHINE_SUFFIX`.
4176
4177
4143 :term:`INITRAMFS_LINK_NAME` 4178 :term:`INITRAMFS_LINK_NAME`
4144 The link name of the initial RAM filesystem image. This variable is 4179 The link name of the initial RAM filesystem image. This variable is
4145 set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as 4180 set in the ``meta/classes-recipe/kernel-artifact-names.bbclass`` file as
@@ -4174,10 +4209,7 @@ system and gives an overview of their function and contents.
4174 4209
4175 INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}" 4210 INITRAMFS_NAME ?= "initramfs-${KERNEL_ARTIFACT_NAME}"
4176 4211
4177 The value of the :term:`KERNEL_ARTIFACT_NAME` 4212 See :term:`KERNEL_ARTIFACT_NAME` for additional information.
4178 variable, which is set in the same file, has the following value::
4179
4180 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
4181 4213
4182 :term:`INITRD` 4214 :term:`INITRD`
4183 Indicates list of filesystem images to concatenate and use as an 4215 Indicates list of filesystem images to concatenate and use as an
@@ -4381,9 +4413,9 @@ system and gives an overview of their function and contents.
4381 ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the 4413 ``meta/classes-recipe/kernel-artifact-names.bbclass`` file, has the
4382 following default value:: 4414 following default value::
4383 4415
4384 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" 4416 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}${IMAGE_MACHINE_SUFFIX}${IMAGE_VERSION_SUFFIX}"
4385 4417
4386 See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`MACHINE` 4418 See the :term:`PKGE`, :term:`PKGV`, :term:`PKGR`, :term:`IMAGE_MACHINE_SUFFIX`
4387 and :term:`IMAGE_VERSION_SUFFIX` variables for additional information. 4419 and :term:`IMAGE_VERSION_SUFFIX` variables for additional information.
4388 4420
4389 :term:`KERNEL_CLASSES` 4421 :term:`KERNEL_CLASSES`
@@ -4441,10 +4473,7 @@ system and gives an overview of their function and contents.
4441 4473
4442 KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}" 4474 KERNEL_DTB_NAME ?= "${KERNEL_ARTIFACT_NAME}"
4443 4475
4444 The value of the :term:`KERNEL_ARTIFACT_NAME` 4476 See :term:`KERNEL_ARTIFACT_NAME` for additional information.
4445 variable, which is set in the same file, has the following value::
4446
4447 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
4448 4477
4449 :term:`KERNEL_DTC_FLAGS` 4478 :term:`KERNEL_DTC_FLAGS`
4450 Specifies the ``dtc`` flags that are passed to the Linux kernel build 4479 Specifies the ``dtc`` flags that are passed to the Linux kernel build
@@ -4507,10 +4536,7 @@ system and gives an overview of their function and contents.
4507 4536
4508 KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}" 4537 KERNEL_FIT_NAME ?= "${KERNEL_ARTIFACT_NAME}"
4509 4538
4510 The value of the :term:`KERNEL_ARTIFACT_NAME` 4539 See :term:`KERNEL_ARTIFACT_NAME` for additional information.
4511 variable, which is set in the same file, has the following value::
4512
4513 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
4514 4540
4515 :term:`KERNEL_IMAGE_LINK_NAME` 4541 :term:`KERNEL_IMAGE_LINK_NAME`
4516 The link name for the kernel image. This variable is set in the 4542 The link name for the kernel image. This variable is set in the
@@ -4546,11 +4572,7 @@ system and gives an overview of their function and contents.
4546 4572
4547 KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}" 4573 KERNEL_IMAGE_NAME ?= "${KERNEL_ARTIFACT_NAME}"
4548 4574
4549 The value of the 4575 See :term:`KERNEL_ARTIFACT_NAME` for additional information.
4550 :term:`KERNEL_ARTIFACT_NAME` variable,
4551 which is set in the same file, has the following value::
4552
4553 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
4554 4576
4555 :term:`KERNEL_IMAGETYPE` 4577 :term:`KERNEL_IMAGETYPE`
4556 The type of kernel to build for a device, usually set by the machine 4578 The type of kernel to build for a device, usually set by the machine
@@ -5299,10 +5321,7 @@ system and gives an overview of their function and contents.
5299 5321
5300 MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}" 5322 MODULE_TARBALL_NAME ?= "${KERNEL_ARTIFACT_NAME}"
5301 5323
5302 The value of the :term:`KERNEL_ARTIFACT_NAME` variable, 5324 See :term:`KERNEL_ARTIFACT_NAME` for additional information.
5303 which is set in the same file, has the following value::
5304
5305 KERNEL_ARTIFACT_NAME ?= "${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
5306 5325
5307 :term:`MOUNT_BASE` 5326 :term:`MOUNT_BASE`
5308 On non-systemd systems (where ``udev-extraconf`` is being used), 5327 On non-systemd systems (where ``udev-extraconf`` is being used),