diff --git a/recipes-core/images/emlinux-image-base.bb b/recipes-core/images/emlinux-image-base.bb index dd000134..d44cc57a 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}" 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 00000000..59189a3c --- /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 += " \ +"