summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-kernel/kernel-module-iccom
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3/recipes-kernel/kernel-module-iccom')
-rw-r--r--meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-hwspinlock-sample.bb32
-rw-r--r--meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-mfis.bb35
2 files changed, 67 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-hwspinlock-sample.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-hwspinlock-sample.bb
new file mode 100644
index 0000000..c088e0f
--- /dev/null
+++ b/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-hwspinlock-sample.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "Linux ICCOM hwspinlock Sample Driver for Renesas R-Car Gen3"
+
+require include/rcar-gen3-modules-common.inc
+require include/iccom-control.inc
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+inherit module distro_features_check
+
+DEPENDS = "linux-renesas"
+PN = "kernel-module-iccom-hwspinlock-sample"
+PR = "r0"
+
+REQUIRED_DISTRO_FEATURES = "iccom"
+
+SRC_URI = "file://iccom-hwspinlock-sample.tar.bz2"
+
+S = "${WORKDIR}/iccom-hwspinlock-sample"
+B = "${S}/iccom-hwspinlock-sample"
+
+do_install () {
+ # Create destination directory
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/extra/
+
+ # Install kernel module
+ install -m 644 ${B}/iccom_hwspinlock_sample.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/
+}
+
+FILES_${PN} = " \
+ /lib/modules/${KERNEL_VERSION}/extra/iccom_hwspinlock_sample.ko \
+"
diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-mfis.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-mfis.bb
new file mode 100644
index 0000000..b2132ad
--- /dev/null
+++ b/meta-rcar-gen3/recipes-kernel/kernel-module-iccom/kernel-module-iccom-mfis.bb
@@ -0,0 +1,35 @@
+DESCRIPTION = "Linux ICCOM MFIS Driver for Renesas R-Car Gen3"
+
+require include/rcar-gen3-modules-common.inc
+require include/iccom-control.inc
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+inherit module distro_features_check
+
+DEPENDS = "linux-renesas"
+PN = "kernel-module-iccom-mfis"
+PR = "r0"
+
+REQUIRED_DISTRO_FEATURES = "iccom"
+
+SRC_URI = "file://iccom-mfis.tar.bz2"
+
+S = "${WORKDIR}/iccom-mfis"
+B = "${S}/iccom-mfis/drv"
+
+do_install () {
+ # Create destination directory
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/extra/
+
+ # Install kernel module
+ install -m 644 ${B}/iccom_mfis.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/
+}
+
+FILES_${PN} = " \
+ /lib/modules/${KERNEL_VERSION}/extra/iccom_mfis.ko \
+"
+
+# Autoload ICCOM MFIS Driver
+KERNEL_MODULE_AUTOLOAD = "iccom_mfis"