diff options
author | Adrian Freihofer <adrian.freihofer@siemens.com> | 2025-06-16 22:36:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 09:48:15 +0100 |
commit | d01f9c44ed98d0b2517ba48c8f37cb61c69ef16f (patch) | |
tree | 999e47d49645a8913204d0cd48a8a08f9c49b019 | |
parent | a8683de719c6277927733ed6019c681b5351e075 (diff) | |
download | poky-d01f9c44ed98d0b2517ba48c8f37cb61c69ef16f.tar.gz |
migration-5.3: replace kernel-fitimage by kernel-fit-image
Add migration documentation for users moving from the removed
kernel-fitimage.bbclass to the new kernel-fit-image.bbclass.
(From yocto-docs rev: 4c3552940a6ff89824845473317b7f5d741d4635)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/migration-guides/migration-5.3.rst | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/documentation/migration-guides/migration-5.3.rst b/documentation/migration-guides/migration-5.3.rst index 22653fc911..09095c7bb2 100644 --- a/documentation/migration-guides/migration-5.3.rst +++ b/documentation/migration-guides/migration-5.3.rst | |||
@@ -59,6 +59,48 @@ Removed classes | |||
59 | 59 | ||
60 | The following classes have been removed in this release: | 60 | The following classes have been removed in this release: |
61 | 61 | ||
62 | - ``kernel-fitimage.bbclass``: the class has been replaced by the | ||
63 | :ref:`ref-classes-kernel-fit-image` class. The new implementation resolves | ||
64 | the long-standing :yocto_bugs:`bug 12912</show_bug.cgi?id=12912>`. | ||
65 | |||
66 | If you are using the kernel FIT image support, you will need to: | ||
67 | |||
68 | #. Make sure to include ``kernel-fit-extra-artifacts`` in your :term:`KERNEL_CLASSES` | ||
69 | variable to ensure the required files are exposed to the :term:`DEPLOY_DIR_IMAGE` | ||
70 | directory:: | ||
71 | |||
72 | KERNEL_CLASSES += "kernel-fit-extra-artifacts" | ||
73 | |||
74 | #. Use the specific FIT image recipe rather than the base kernel recipe. | ||
75 | For example, instead of:: | ||
76 | |||
77 | bitbake linux-yocto | ||
78 | |||
79 | the FIT image is now build by:: | ||
80 | |||
81 | bitbake linux-yocto-fitimage | ||
82 | |||
83 | For custom kernel recipes, creating a corresponding custom FIT image recipe | ||
84 | is usually a good approach. | ||
85 | |||
86 | #. If a FIT image is used as a replacement for the kernel image in the root | ||
87 | filesystem, add the following configuration to your machine configuration | ||
88 | file:: | ||
89 | |||
90 | # Create and deploy the vmlinux artifact which gets included into the FIT image | ||
91 | KERNEL_CLASSES += "kernel-fit-extra-artifacts" | ||
92 | |||
93 | # Do not install the kernel image package | ||
94 | RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base = "" | ||
95 | # Install the FIT image package | ||
96 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-yocto-fitimage" | ||
97 | |||
98 | # Configure the image.bbclass to depend on the FIT image instead of only | ||
99 | # the kernel to ensure the FIT image is built and deployed with the image | ||
100 | KERNEL_DEPLOY_DEPEND = "linux-yocto-fitimage:do_deploy" | ||
101 | |||
102 | See the :ref:`ref-classes-kernel-fit-image` section for more information. | ||
103 | |||
62 | Removed features | 104 | Removed features |
63 | ~~~~~~~~~~~~~~~~ | 105 | ~~~~~~~~~~~~~~~~ |
64 | 106 | ||