summaryrefslogtreecommitdiff
path: root/meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb')
-rw-r--r--meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb b/meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb
new file mode 100644
index 0000000..dc0fab0
--- /dev/null
+++ b/meta-unit-core/recipes-core/initrdscripts/initramfs-module-kmod.bb
@@ -0,0 +1,16 @@
+SUMMARY = "Initramfs module for loading kernel modules"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${UNIT_CORE_LAYERDIR}/LICENSE;md5=38bf13be5d6979b28bd8adddb2f2f9b3"
+
+RDEPENDS:${PN} = "initramfs-framework-base"
+
+SRC_URI = "file://kmod"
+
+S = "${UNPACKDIR}"
+
+do_install() {
+ install -d ${D}/init.d
+ install -m 0755 ${UNPACKDIR}/kmod ${D}/init.d/01-kmod
+}
+
+FILES:${PN} = "/init.d/01-kmod"