summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mtac-gpiob_1.0.0.bb
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-10-15 18:52:09 -0500
committerJohn Klug <john.klug@multitech.com>2018-10-15 18:52:09 -0500
commit93302bee4658d43747e953f3b77829f26fa85e61 (patch)
treeaebbf458f4f41c548345d6168fa2b72e586ef68f /recipes-bsp/multitech/mtac-gpiob_1.0.0.bb
parent3212a35810c656e1db1350522f3f1277b1b88d06 (diff)
downloadmeta-multitech-93302bee4658d43747e953f3b77829f26fa85e61.tar.gz
meta-multitech-93302bee4658d43747e953f3b77829f26fa85e61.tar.bz2
meta-multitech-93302bee4658d43747e953f3b77829f26fa85e61.zip
Split mts-io driver module into separate modules.
Diffstat (limited to 'recipes-bsp/multitech/mtac-gpiob_1.0.0.bb')
-rw-r--r--recipes-bsp/multitech/mtac-gpiob_1.0.0.bb45
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mtac-gpiob_1.0.0.bb b/recipes-bsp/multitech/mtac-gpiob_1.0.0.bb
new file mode 100644
index 0000000..4fc404d
--- /dev/null
+++ b/recipes-bsp/multitech/mtac-gpiob_1.0.0.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "MTAC GPIOB Card"
+HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-gpiob/"
+SECTION = "base"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+DEPENDS = "virtual/kernel mtac mts-io"
+RDEPENDS_${PN} = "kernel-module-mtac"
+INC_PR = "r0"
+
+SRCREV = "${PV}"
+
+PR = "${INC_PR}.0-${MLINUX_KERNEL_VERSION}${MLINUX_KERNEL_EXTRA_VERSION}"
+
+SRC_URI = " \
+ git://git.multitech.net/mtac-gpiob.git;protocol=git \
+"
+S = "${WORKDIR}/git"
+
+inherit module
+
+EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
+ KBUILD_VERBOSE=1 \
+ M=${S} \
+ modules \
+ "
+
+do_compile () {
+ bbnote make "$@"
+ make "$@"
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ oe_runmake
+}
+
+PACKAGES = "kernel-module-${PN}"
+
+FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_gpiob.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_gpiob.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+}