From 26560efaeabb50ecc89950956464505210b3133e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 13 Dec 2023 18:22:37 +0000 Subject: images: add core-image-initramfs-boot Add a minimal initramfs image recipe that just contains enough initramfs to find the real root filesystem and pivot to it. BSPs can use MACHINE_EXTRA_RRECOMMENDS to pull in any kernel module packages that are required to bring up the hardware so that the rootfs can be found. (From OE-Core rev: 3e862cddf28e58957b7c6d9c983fdb40eb5442fb) Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- .../images/core-image-initramfs-boot.bb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta/recipes-core/images/core-image-initramfs-boot.bb (limited to 'meta/recipes-core/images') diff --git a/meta/recipes-core/images/core-image-initramfs-boot.bb b/meta/recipes-core/images/core-image-initramfs-boot.bb new file mode 100644 index 0000000000..7258944751 --- /dev/null +++ b/meta/recipes-core/images/core-image-initramfs-boot.bb @@ -0,0 +1,22 @@ +SUMMARY = "Basic initramfs to boot a fully-featured rootfs" +DESCRIPTION = "Small initramfs that contains just udev and init, to find the real rootfs." +LICENSE = "MIT" + +INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev" + +PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd" + +# Ensure the initramfs only contains the bare minimum +IMAGE_FEATURES = "" +IMAGE_LINGUAS = "" + +# Don't allow the initramfs to contain a kernel, as kernel modules will depend +# on the kernel image. +PACKAGE_EXCLUDE = "kernel-image-*" + +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" +IMAGE_NAME_SUFFIX ?= "" +IMAGE_ROOTFS_SIZE = "8192" +IMAGE_ROOTFS_EXTRA_SPACE = "0" + +inherit image -- cgit v1.2.3-54-g00ecf