mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

The original initramfs-live-boot recipe RDEPENDS on udev, which is ok since the init script relies some of its functionality on udevadm and such, but on core-image-tiny-initramfs the init script simply drops to shell after a basic setup, so udev is not needed. This patch splits up an initramfs-live-boot-tiny recipe which does not use udev, but uses busybox-mdev instead, eudev installed about 600 extra Kilobytes to core-image-tiny-initramfs userspace, by avoiding to install eudev we achieve an even smaller footprint (almost 40% smaller). (From OE-Core rev: 7725bad91b89a291a7099b2d99789a86b028f329) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
506 B
BlitzBasic
22 lines
506 B
BlitzBasic
SUMMARY = "Live image init script"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
DEPENDS = "virtual/kernel"
|
|
RDEPENDS_${PN} = "busybox-mdev"
|
|
SRC_URI = "file://init-live.sh"
|
|
|
|
PR = "r12"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
|
install -d ${D}/dev
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
|
}
|
|
|
|
FILES_${PN} += " /init /dev "
|
|
|
|
# Due to kernel dependency
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|