This series of patches is getting rid of recipes that manually assembled the images:
- the linux image consisting of the ESP and rootfs partitions - the initramfs
These are now managed via the usual Yocto ways, which should make them easier to maintain moving forward.
FVP test image is decoupled from the machine config.
Implementation can be seen here:
https://git.morello-project.org/pzalewski/meta-morello/-/tree/use-wic
Pawel Zalewski (9): grub: remove redundant code linux-image: replace with wic config: support the wic image kas: match new image linux: moved to config initramfs: use core-image instead of doing it manually gen-init-cpio: remove the recipe ci: move testimage README.md: update
ci/jobs-to-kas | 4 + ci/testimage.yml | 11 ++ kas/morello-fvp.yml | 17 +- kas/morello-soc.yml | 2 +- meta-morello/README.md | 6 +- .../conf/machine/include/morello-common.inc | 21 ++- meta-morello/conf/machine/morello-fvp.conf | 7 +- meta-morello/conf/machine/morello-soc.conf | 5 +- .../recipes-bsp/grub/grub-efi_2.%.bbappend | 21 +-- .../recipes-core/busybox/busybox-morello.inc | 8 +- .../gen-init-cpio/gen-init-cpio-native.bb | 37 ----- .../recipes-kernel/linux/linux-morello.inc | 1 - .../images/{morello-soc => }/files/init.sh | 24 ++- .../files/initramfs.list.template | 0 .../images/morello-fvp/files/init.sh | 47 ------ .../images/morello-initramfs-image.bb | 24 +++ .../images/morello-initramfs-scripts.bb | 19 +++ .../images/morello-initramfs.bb | 52 ------ .../images/morello-linux-image-fvp.inc | 1 - .../images/morello-linux-image-soc.inc | 1 - .../images/morello-linux-image.bb | 153 ------------------ .../morello-soc/files/initramfs.list.template | 16 -- meta-morello/wic/morello-efidisk.wks | 9 ++ .../morello-fvp-grub.cfg} | 14 +- .../morello-soc-grub.cfg} | 14 +- 25 files changed, 135 insertions(+), 379 deletions(-) create mode 100644 ci/testimage.yml delete mode 100644 meta-morello/recipes-devtools/gen-init-cpio/gen-init-cpio-native.bb rename meta-morello/recipes-morello/images/{morello-soc => }/files/init.sh (51%) rename meta-morello/recipes-morello/images/{morello-fvp => }/files/initramfs.list.template (100%) delete mode 100644 meta-morello/recipes-morello/images/morello-fvp/files/init.sh create mode 100644 meta-morello/recipes-morello/images/morello-initramfs-image.bb create mode 100644 meta-morello/recipes-morello/images/morello-initramfs-scripts.bb delete mode 100644 meta-morello/recipes-morello/images/morello-initramfs.bb delete mode 100644 meta-morello/recipes-morello/images/morello-linux-image-fvp.inc delete mode 100644 meta-morello/recipes-morello/images/morello-linux-image-soc.inc delete mode 100644 meta-morello/recipes-morello/images/morello-linux-image.bb delete mode 100644 meta-morello/recipes-morello/images/morello-soc/files/initramfs.list.template create mode 100644 meta-morello/wic/morello-efidisk.wks rename meta-morello/{recipes-bsp/grub/morello-fvp/files/grub-config.cfg => wic/morello-fvp-grub.cfg} (58%) rename meta-morello/{recipes-bsp/grub/morello-soc/files/grub-config.cfg => wic/morello-soc-grub.cfg} (61%)