If the KERNEL_IMAGETYPES(S) contains fitImage, the kernel is always rebuilt when something changes in the initramfs, which happens frequently. This is even worse if the build runs from an empty TMPDIR. The kernel re-build starts by fetching the large kernel git repository and recompiling it from scratch.
This cannot be improved if INITRAMFS_IMAGE_BUNDLE = "1". If the kernel Makefile is needed to generate the initramfs bundle the kernel build folder is required. But for a build configuration with INITRAMFS_IMAGE_BUNDLE = "" the build folder is not needed. Creating the initramfs bundle requires: linux.bin, DTBs and the initramfs which are available in the deploy directory. That means creating the fitImage can be done with artifacts which are already cached by the sstate. There is an extra commit providing a html file. This html file provides some graphics which show the changes in the kernel's task dependencies. I hope this simplifies the re-view of this patch series. Adrian Freihofer (14): oe-selftest: wic fix deps of test_efi_plugin_unified_kernel_image_qemu oe-selftest: fitimage refactor u-boot-tools-native oe-selftest: fitimage drop test-mkimage-wrapper oe-selftest: fitimage cleanup asserts oe-selftest: fitimage fix test_initramfs_bundle kernel-fitimage: fix handling of empty default dtb kernel-fitimage: fix external dtb check kernel: execute do_bundle_initramfs only when needed kernel-fitimage: refactor do_assemble_fitimage_initramfs kernel-fitimage: refactor creation of linux.bin kernel-fitimage: fix intentation kernel-fitimage: run unbundled fitimage after deploy image: depends do_deploy_fitimage_unbundled DO NOT MERGE: explanation and testing kernel-tasks.sh | 76 ++ .../classes/test-mkimage-wrapper.bbclass | 19 - meta/classes-recipe/image.bbclass | 12 +- meta/classes-recipe/kernel-fitimage.bbclass | 179 ++- meta/classes-recipe/kernel-uboot.bbclass | 17 + meta/classes-recipe/kernel.bbclass | 17 +- meta/lib/oeqa/selftest/cases/fitimage.py | 264 ++-- meta/lib/oeqa/selftest/cases/wic.py | 6 +- task-depends.html | 1122 +++++++++++++++++ 9 files changed, 1490 insertions(+), 222 deletions(-) create mode 100755 kernel-tasks.sh delete mode 100644 meta-selftest/classes/test-mkimage-wrapper.bbclass create mode 100644 task-depends.html -- 2.45.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#201506): https://lists.openembedded.org/g/openembedded-core/message/201506 Mute This Topic: https://lists.openembedded.org/mt/107033887/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
