diff options
author | Ross Burton <ross.burton@arm.com> | 2023-11-27 11:48:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-30 08:43:04 +0000 |
commit | d069eb3af4f8a20ca4bad84b5e529e92d152ccef (patch) | |
tree | 9e629480908ef46a902078604b87c4acce90cde4 | |
parent | a4ddc1415b319c5175d958d3b0157faef36ce6b2 (diff) | |
download | poky-d069eb3af4f8a20ca4bad84b5e529e92d152ccef.tar.gz |
core-image-minimal-initramfs: don't install a kernel into the initramfs
There's obviously no point in installing a kernel into an initramfs, but
if we install kernel modules then they'll recommend the relevant kernel.
Set PACKAGE_EXCLUDE to ensure the initramfs for a kernel doesn't contain
the kernel.
(From OE-Core rev: 2914e6a912c9aa014a05015c3401675d10c0f13b)
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/recipes-core/images/core-image-minimal-initramfs.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb index 1c08c7fec6..7bb0b2738c 100644 --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb | |||
@@ -17,6 +17,9 @@ PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} udev base- | |||
17 | # Do not pollute the initrd image with rootfs features | 17 | # Do not pollute the initrd image with rootfs features |
18 | IMAGE_FEATURES = "" | 18 | IMAGE_FEATURES = "" |
19 | 19 | ||
20 | # Don't allow the initramfs to contain a kernel | ||
21 | PACKAGE_EXCLUDE = "kernel-image-*" | ||
22 | |||
20 | export IMAGE_BASENAME = "${MLPREFIX}core-image-minimal-initramfs" | 23 | export IMAGE_BASENAME = "${MLPREFIX}core-image-minimal-initramfs" |
21 | IMAGE_NAME_SUFFIX ?= "" | 24 | IMAGE_NAME_SUFFIX ?= "" |
22 | IMAGE_LINGUAS = "" | 25 | IMAGE_LINGUAS = "" |