diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
commit | 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 (patch) | |
tree | eb2d091d427ca0813b445509d59cc8e27e8ad25f /yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | |
parent | 101cef31e2bf54c678501155cd2106251acbd076 (diff) | |
parent | c124f4f2e04dca16a428a76c89677328bc7bf908 (diff) | |
download | openbmc-21f9b84b4b729fbd7acbd465e7a3f726e4d20f91.tar.xz |
Merge commit 'c124f4f2e04dca16a428a76c89677328bc7bf908' as 'yocto-poky'
Diffstat (limited to 'yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb')
-rw-r--r-- | yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb new file mode 100644 index 000000000..6c37b9aef --- /dev/null +++ b/yocto-poky/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb @@ -0,0 +1,66 @@ +SUMMARY = "Modular initramfs system" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +RDEPENDS_${PN} += "busybox" + +PR = "r2" + +inherit allarch + +SRC_URI = "file://init \ + file://finish \ + file://mdev \ + file://udev \ + file://e2fs \ + file://debug" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}/init.d + + # base + install -m 0755 ${WORKDIR}/init ${D}/init + install -m 0755 ${WORKDIR}/finish ${D}/init.d/99-finish + + # mdev + install -m 0755 ${WORKDIR}/mdev ${D}/init.d/01-mdev + + # udev + install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev + + # e2fs + install -m 0755 ${WORKDIR}/e2fs ${D}/init.d/10-e2fs + + # debug + install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug + + # Create device nodes expected by some kernels in initramfs + # before even executing /init. + install -d ${D}/dev + mknod -m 622 ${D}/dev/console c 5 1 +} + +PACKAGES = "${PN}-base \ + initramfs-module-mdev \ + initramfs-module-udev \ + initramfs-module-e2fs \ + initramfs-module-debug" + +FILES_${PN}-base = "/init /init.d/99-finish /dev" + +SUMMARY_initramfs-module-mdev = "initramfs support for mdev" +RDEPENDS_initramfs-module-mdev = "${PN}-base" +FILES_initramfs-module-mdev = "/init.d/01-mdev" + +SUMMARY_initramfs-module-udev = "initramfs support for udev" +RDEPENDS_initramfs-module-udev = "${PN}-base udev" +FILES_initramfs-module-udev = "/init.d/01-udev" + +SUMMARY_initramfs-module-e2fs = "initramfs support for ext4/ext3/ext2 filesystems" +RDEPENDS_initramfs-module-e2fs = "${PN}-base" +FILES_initramfs-module-e2fs = "/init.d/10-e2fs" + +SUMMARY_initramfs-module-debug = "initramfs dynamic debug support" +RDEPENDS_initramfs-module-debug = "${PN}-base" +FILES_initramfs-module-debug = "/init.d/00-debug" |