diff options
author | Ross Burton <ross.burton@arm.com> | 2023-12-13 18:22:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-21 10:38:29 +0000 |
commit | 26560efaeabb50ecc89950956464505210b3133e (patch) | |
tree | f398922d1c09d1772bff28a4a276ab955a051d77 | |
parent | 56a22eb31c2596af0843bc8c84d32200c93c18f7 (diff) | |
download | poky-26560efaeabb50ecc89950956464505210b3133e.tar.gz |
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>
-rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
-rw-r--r-- | meta/recipes-core/images/core-image-initramfs-boot.bb | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 74f7e1baa8..7d831523ad 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
@@ -101,6 +101,7 @@ RECIPE_MAINTAINER:pn-connman-conf = "Ross Burton <ross.burton@arm.com>" | |||
101 | RECIPE_MAINTAINER:pn-connman-gnome = "Ross Burton <ross.burton@arm.com>" | 101 | RECIPE_MAINTAINER:pn-connman-gnome = "Ross Burton <ross.burton@arm.com>" |
102 | RECIPE_MAINTAINER:pn-consolekit = "Chen Qi <Qi.Chen@windriver.com>" | 102 | RECIPE_MAINTAINER:pn-consolekit = "Chen Qi <Qi.Chen@windriver.com>" |
103 | RECIPE_MAINTAINER:pn-core-image-base = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 103 | RECIPE_MAINTAINER:pn-core-image-base = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
104 | RECIPE_MAINTAINER:pn-core-image-initramfs-boot = "Ross Burton <ross.burton@arm.com>" | ||
104 | RECIPE_MAINTAINER:pn-core-image-minimal = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 105 | RECIPE_MAINTAINER:pn-core-image-minimal = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
105 | RECIPE_MAINTAINER:pn-core-image-minimal-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 106 | RECIPE_MAINTAINER:pn-core-image-minimal-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
106 | RECIPE_MAINTAINER:pn-core-image-minimal-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 107 | RECIPE_MAINTAINER:pn-core-image-minimal-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
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 @@ | |||
1 | SUMMARY = "Basic initramfs to boot a fully-featured rootfs" | ||
2 | DESCRIPTION = "Small initramfs that contains just udev and init, to find the real rootfs." | ||
3 | LICENSE = "MIT" | ||
4 | |||
5 | INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev" | ||
6 | |||
7 | PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd" | ||
8 | |||
9 | # Ensure the initramfs only contains the bare minimum | ||
10 | IMAGE_FEATURES = "" | ||
11 | IMAGE_LINGUAS = "" | ||
12 | |||
13 | # Don't allow the initramfs to contain a kernel, as kernel modules will depend | ||
14 | # on the kernel image. | ||
15 | PACKAGE_EXCLUDE = "kernel-image-*" | ||
16 | |||
17 | IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" | ||
18 | IMAGE_NAME_SUFFIX ?= "" | ||
19 | IMAGE_ROOTFS_SIZE = "8192" | ||
20 | IMAGE_ROOTFS_EXTRA_SPACE = "0" | ||
21 | |||
22 | inherit image | ||