Re: [OE-core] [PATCH v2 0/6] Use the kernel from sstate when building fitImages

Martin Jansa
2024-07-15T14:32:48Z

Doesn't it still rebuild from scratch when IMAGE_VERSION_SUFFIX changes?

To be able to re-use the kernel from sstate even when
IMAGE_VERSION_SUFFIX changes I've implemented:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12937
which was unfortunately rejected due to lack of interest from other
people outside LGE, but maybe you could take advantage of that as
well.

On Mon, Jul 15, 2024 at 4:22 PM Adrian Freihofer via
lists.openembedded.org
<adrian.freihofer=gmail.com@lists.openembedded.org> wrote:
>
> Task dependeny changes
>
> Configuration: image, fitimage, initramfs, unbundled
>
> KERNEL_IMAGETYPE = "Image"
> KERNEL_IMAGETYPES += " fitImage "
> KERNEL_CLASSES = " kernel-fitimage "
> IMAGE_FSTYPES += "cpio.gz"
> INITRAMFS_IMAGE = "core-image-minimal-initramfs"
>
> branch: master
>
> core-image-minimal.do_build do_deploy do_assemble_fitimage_initramfs do_bundle_initramfs do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys core-image-minimal.do_image_complete do_install
>
> branch: adrianf/kernel-fitimage-sstate
>
> core-image-minimal.do_build do_deploy do_deploy_fitimage_unbundled core-image-minimal.do_image_complete do_install do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys
>
> Diff
>
> 2a3
> > "core-image-minimal.do_build" -> "do_deploy_fitimage_unbundled"
> 6,11d6
> < "do_assemble_fitimage_initramfs" [label="do_assemble_fitimage_initramfs"]
> < "do_assemble_fitimage_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_assemble_fitimage_initramfs" -> "do_bundle_initramfs"
> < "do_bundle_initramfs" [label="do_bundle_initramfs"]
> < "do_bundle_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_bundle_initramfs" -> "do_install"
> 14,15c9,10
> < "do_deploy" -> "do_assemble_fitimage_initramfs"
> < "do_deploy" -> "do_bundle_initramfs"
> ---
> > "do_deploy" -> "core-image-minimal.do_image_complete"
> > "do_deploy" -> "do_install"
> 16a12,14
> > "do_deploy_fitimage_unbundled" [label="do_deploy_fitimage_unbundled"]
> > "do_deploy_fitimage_unbundled" -> "core-image-minimal.do_image_complete"
> > "do_deploy_fitimage_unbundled" -> "do_deploy"
>
> Configuration: fitimage, initramfs, unbundled
>
> KERNEL_IMAGETYPE:forcevariable = "fitImage"
> KERNEL_CLASSES = " kernel-fitimage "
> IMAGE_FSTYPES += "cpio.gz"
> INITRAMFS_IMAGE = "core-image-minimal-initramfs"
>
> branch: master
>
> core-image-minimal.do_build do_deploy do_assemble_fitimage_initramfs do_bundle_initramfs do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys core-image-minimal.do_image_complete do_install
>
> branch: adrianf/kernel-fitimage-sstate
>
> core-image-minimal.do_build do_deploy do_deploy_fitimage_unbundled core-image-minimal.do_image_complete do_install do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys
>
> Diff
>
> 2a3
> > "core-image-minimal.do_build" -> "do_deploy_fitimage_unbundled"
> 6,11d6
> < "do_assemble_fitimage_initramfs" [label="do_assemble_fitimage_initramfs"]
> < "do_assemble_fitimage_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_assemble_fitimage_initramfs" -> "do_bundle_initramfs"
> < "do_bundle_initramfs" [label="do_bundle_initramfs"]
> < "do_bundle_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_bundle_initramfs" -> "do_install"
> 14,15c9,10
> < "do_deploy" -> "do_assemble_fitimage_initramfs"
> < "do_deploy" -> "do_bundle_initramfs"
> ---
> > "do_deploy" -> "core-image-minimal.do_image_complete"
> > "do_deploy" -> "do_install"
> 16a12,14
> > "do_deploy_fitimage_unbundled" [label="do_deploy_fitimage_unbundled"]
> > "do_deploy_fitimage_unbundled" -> "core-image-minimal.do_image_complete"
> > "do_deploy_fitimage_unbundled" -> "do_deploy"
>
> Configuration: image, fitimage, initramfs, bundled
>
> KERNEL_IMAGETYPE = "Image"
> KERNEL_IMAGETYPES += " fitImage "
> KERNEL_CLASSES = " kernel-fitimage "
> IMAGE_FSTYPES += "cpio.gz"
> INITRAMFS_IMAGE = "core-image-minimal-initramfs"
> INITRAMFS_IMAGE_BUNDLE = "1"
>
> branch: master
>
> core-image-minimal.do_build do_deploy do_assemble_fitimage_initramfs do_bundle_initramfs do_populate_sysroot do_transform_bundled_initramfs do_assemble_fitimage do_compile do_kernel_generate_rsa_keys core-image-minimal.do_image_complete do_install
>
> branch: adrianf/kernel-fitimage-sstate
>
> core-image-minimal.do_build do_deploy do_assemble_fitimage_initramfs do_bundle_initramfs do_populate_sysroot do_transform_bundled_initramfs do_assemble_fitimage do_compile do_kernel_generate_rsa_keys core-image-minimal.do_image_complete do_install
>
> Diff
>
> Configuration: image, fitimage
>
> KERNEL_IMAGETYPE = "Image"
> KERNEL_IMAGETYPES += " fitImage "
> KERNEL_CLASSES = " kernel-fitimage "
>
> branch: master
>
> core-image-minimal.do_build do_deploy do_assemble_fitimage_initramfs do_bundle_initramfs do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys core-image-minimal.do_image_complete do_install
>
> branch: adrianf/kernel-fitimage-sstate
>
> core-image-minimal.do_build do_deploy do_deploy_fitimage_unbundled core-image-minimal.do_image_complete do_install do_populate_sysroot do_assemble_fitimage do_compile do_kernel_generate_rsa_keys
>
> Diff
>
> 2a3
> > "core-image-minimal.do_build" -> "do_deploy_fitimage_unbundled"
> 6,11d6
> < "do_assemble_fitimage_initramfs" [label="do_assemble_fitimage_initramfs"]
> < "do_assemble_fitimage_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_assemble_fitimage_initramfs" -> "do_bundle_initramfs"
> < "do_bundle_initramfs" [label="do_bundle_initramfs"]
> < "do_bundle_initramfs" -> "core-image-minimal.do_image_complete"
> < "do_bundle_initramfs" -> "do_install"
> 14,15c9,10
> < "do_deploy" -> "do_assemble_fitimage_initramfs"
> < "do_deploy" -> "do_bundle_initramfs"
> ---
> > "do_deploy" -> "core-image-minimal.do_image_complete"
> > "do_deploy" -> "do_install"
> 16a12,14
> > "do_deploy_fitimage_unbundled" [label="do_deploy_fitimage_unbundled"]
> > "do_deploy_fitimage_unbundled" -> "core-image-minimal.do_image_complete"
> > "do_deploy_fitimage_unbundled" -> "do_deploy"
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#201933): https://lists.openembedded.org/g/openembedded-core/message/201933
> Mute This Topic: https://lists.openembedded.org/mt/107231736/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>