mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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 <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
56a22eb31c
commit
26560efaea
@@ -101,6 +101,7 @@ RECIPE_MAINTAINER:pn-connman-conf = "Ross Burton <ross.burton@arm.com>"
|
||||
RECIPE_MAINTAINER:pn-connman-gnome = "Ross Burton <ross.burton@arm.com>"
|
||||
RECIPE_MAINTAINER:pn-consolekit = "Chen Qi <Qi.Chen@windriver.com>"
|
||||
RECIPE_MAINTAINER:pn-core-image-base = "Richard Purdie <richard.purdie@linuxfoundation.org>"
|
||||
RECIPE_MAINTAINER:pn-core-image-initramfs-boot = "Ross Burton <ross.burton@arm.com>"
|
||||
RECIPE_MAINTAINER:pn-core-image-minimal = "Richard Purdie <richard.purdie@linuxfoundation.org>"
|
||||
RECIPE_MAINTAINER:pn-core-image-minimal-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
|
||||
RECIPE_MAINTAINER:pn-core-image-minimal-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>"
|
||||
|
||||
22
meta/recipes-core/images/core-image-initramfs-boot.bb
Normal file
22
meta/recipes-core/images/core-image-initramfs-boot.bb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user