From 80b1bda518f378a69507595015230c55b7b41747 Mon Sep 17 00:00:00 2001 From: Hirotaka Motai Date: Wed, 4 Mar 2026 10:32:14 +0000 Subject: [PATCH 1/2] initramfs: add initial emlinux-initramfs-base recipe Introduce the emlinux-initramfs-base recipe for the first time. Confirmed it contains the same files as the original initrd. Signed-off-by: Hirotaka Motai --- .../emlinux-initramfs-base.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 recipes-initramfs/emlinux-initramfs/emlinux-initramfs-base.bb diff --git a/recipes-initramfs/emlinux-initramfs/emlinux-initramfs-base.bb b/recipes-initramfs/emlinux-initramfs/emlinux-initramfs-base.bb new file mode 100644 index 0000000..59189a3 --- /dev/null +++ b/recipes-initramfs/emlinux-initramfs/emlinux-initramfs-base.bb @@ -0,0 +1,26 @@ +# +# EMLinux initramfs base image +# +# Copyright Cybertrust Japan Co., Ltd. +# +# Authors: +# Hirotaka Motai +# +# SPDX-License-Identifier: MIT +# +# The image will be deployed to: +# build/tmp/deploy/images/${MACHINE}/emlinux-initramfs-base-${DISTRO}-${MACHINE}-initrd.img +# + +inherit initramfs + +# Debian packages that should be install into the system for building the +# initramfs. +INITRAMFS_PREINSTALL += " \ + dmsetup \ + systemd \ +" + +# Recipes that should be install into the initramfs build rootfs. +INITRAMFS_INSTALL += " \ +" From 06841a5be86b769b24557050af6cca195a017a9a Mon Sep 17 00:00:00 2001 From: Hirotaka Motai Date: Wed, 4 Mar 2026 10:43:41 +0000 Subject: [PATCH 2/2] image: Add initrd image This commit set the IMAGE_INITRD variable in emlinux-image-base.bb. This ensures the image is now built with the emlinux-initramfs-base initramfs. Signed-off-by: Hirotaka Motai --- recipes-core/images/emlinux-image-base.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-core/images/emlinux-image-base.bb b/recipes-core/images/emlinux-image-base.bb index dd00013..d44cc57 100644 --- a/recipes-core/images/emlinux-image-base.bb +++ b/recipes-core/images/emlinux-image-base.bb @@ -32,3 +32,6 @@ IMAGE_PREINSTALL:append = "\ inherit image DEPENDS:class-sdk:append = " ${IMAGE_INSTALL}" + +INITRAMFS_RECIPE ?= "emlinux-initramfs-base" +IMAGE_INITRD = "${INITRAMFS_RECIPE}"