summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-06-22 12:03:30 -0500
committerJohn Klug <john.klug@multitech.com>2021-06-22 12:03:30 -0500
commitdd1b71e6b61a2de1b2b55efc68592779a43a5712 (patch)
tree2360a9d8d4690d7eced2055484e084d90ec43a35 /recipes-bsp/multitech
parentac926d0d77fad8c6740432e4ecf1dc1b640774be (diff)
downloadmeta-multitech-dd1b71e6b61a2de1b2b55efc68592779a43a5712.tar.gz
meta-multitech-dd1b71e6b61a2de1b2b55efc68592779a43a5712.tar.bz2
meta-multitech-dd1b71e6b61a2de1b2b55efc68592779a43a5712.zip
MTAC driver for 4.19 kernel
Diffstat (limited to 'recipes-bsp/multitech')
-rw-r--r--recipes-bsp/multitech/mtac_4.0.4.bb54
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mtac_4.0.4.bb b/recipes-bsp/multitech/mtac_4.0.4.bb
new file mode 100644
index 0000000..d4bd4de
--- /dev/null
+++ b/recipes-bsp/multitech/mtac_4.0.4.bb
@@ -0,0 +1,54 @@
+DESCRIPTION = "mtac drivers"
+HOMEPAGE = "http://www.multitech.net/"
+SECTION = "base"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+do_fetch[depends]+="virtual/kernel:do_shared_workdir"
+DEPENDS = "virtual/kernel mts-io"
+INC_PR = "r0"
+COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)"
+
+# SRCREV = "${PV}"
+SRCREV = "${AUTOREV}"
+
+# Some packages depend on mtac
+RPROVIDES_kernel-module-${PN} = "mtac"
+
+PR = "${INC_PR}.1${KERNEL_MODULE_PACKAGE_SUFFIX}"
+
+SRC_URI = " \
+ git://git.multitech.net/mtac.git;protocol=git \
+"
+S = "${WORKDIR}/git"
+
+inherit module
+
+EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
+ EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers' \
+ KBUILD_VERBOSE=1 \
+ M=${S} \
+ modules \
+ "
+
+do_compile () {
+ bbnote make "$@"
+ make "$@"
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ oe_runmake
+}
+
+PACKAGES = "kernel-module-${PN} ${PN}-dev"
+
+FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.ko"
+
+PARALLEL_MAKE = ""
+
+fakeroot do_install () {
+ install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+ # use cp instead of install so the driver doesn't get stripped
+ cp ${S}/mtac.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+
+ install -d ${D}${includedir}/mts-kernel-headers/linux
+ install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux
+}