diff options
author | John Klug <john.klug@multitech.com> | 2020-09-29 16:39:09 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-09-29 16:39:09 -0500 |
commit | 27d555a2de6a8912d92bdee3ca80312a2f78fed4 (patch) | |
tree | 3ed22a8604eabe9cb3381b60a77703df8228250c /recipes-bsp/multitech/mtac-mfser_1.1.0.bb | |
parent | 6185e6adcc9ea66b95d1d81657c2b06368a8a02d (diff) | |
download | meta-multitech-27d555a2de6a8912d92bdee3ca80312a2f78fed4.tar.gz meta-multitech-27d555a2de6a8912d92bdee3ca80312a2f78fed4.tar.bz2 meta-multitech-27d555a2de6a8912d92bdee3ca80312a2f78fed4.zip |
mtac-* port to mtcpmhs
Diffstat (limited to 'recipes-bsp/multitech/mtac-mfser_1.1.0.bb')
-rw-r--r-- | recipes-bsp/multitech/mtac-mfser_1.1.0.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mtac-mfser_1.1.0.bb b/recipes-bsp/multitech/mtac-mfser_1.1.0.bb new file mode 100644 index 0000000..2438a8b --- /dev/null +++ b/recipes-bsp/multitech/mtac-mfser_1.1.0.bb @@ -0,0 +1,48 @@ +DESCRIPTION = "MTAC Multi-Function Serial Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-mfser/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +do_fetch[depends]+="virtual/kernel:do_shared_workdir" +DEPENDS = "virtual/kernel mtac mts-io" +RDEPENDS_${PN} = "kernel-module-mtac" +INC_PR = "r0" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${PV}" + +PR = "${INC_PR}.1${KERNEL_MODULE_PACKAGE_SUFFIX}" + +SRC_URI = " \ + git://git@gitlab.multitech.net/mirrors/mtac-mfser.git;protocol=ssh \ +" +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}" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_mfser.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_mfser.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} |