diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2017-11-22 09:09:30 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-02 11:25:33 +0000 |
commit | 885ff683f0498adf404d87efb6a20c08484a73bd (patch) | |
tree | 579f1978d40b6bfc7f880617cd1166f399907be4 /meta/recipes-core/initrdscripts | |
parent | 9ffe68280ff21218cffdd09946d91ae29cbec12a (diff) | |
download | poky-885ff683f0498adf404d87efb6a20c08484a73bd.tar.gz |
initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe
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>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb new file mode 100644 index 0000000000..7a9a8ecae2 --- /dev/null +++ b/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | SUMMARY = "Live image init script" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | DEPENDS = "virtual/kernel" | ||
5 | RDEPENDS_${PN} = "busybox-mdev" | ||
6 | SRC_URI = "file://init-live.sh" | ||
7 | |||
8 | PR = "r12" | ||
9 | |||
10 | S = "${WORKDIR}" | ||
11 | |||
12 | do_install() { | ||
13 | install -m 0755 ${WORKDIR}/init-live.sh ${D}/init | ||
14 | install -d ${D}/dev | ||
15 | mknod -m 622 ${D}/dev/console c 5 1 | ||
16 | } | ||
17 | |||
18 | FILES_${PN} += " /init /dev " | ||
19 | |||
20 | # Due to kernel dependency | ||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||