diff options
author | Jason Reiss <jreiss@multitech.com> | 2020-03-10 12:13:59 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-06-21 04:09:32 -0500 |
commit | 49ef0cba7d02be0c3363f1fe721ac4b477cfa7b6 (patch) | |
tree | 4398f0e3edf88e29df877251274ac2e471bed8ff /recipes-bsp/multitech/mtac-lora_1.1.4.bb | |
parent | e3c2f86968b8f6659f84fb546baee257c012e534 (diff) | |
download | meta-multitech-49ef0cba7d02be0c3363f1fe721ac4b477cfa7b6.tar.gz meta-multitech-49ef0cba7d02be0c3363f1fe721ac4b477cfa7b6.tar.bz2 meta-multitech-49ef0cba7d02be0c3363f1fe721ac4b477cfa7b6.zip |
update mtac, mtac-lora and mts-id-eeprom
Diffstat (limited to 'recipes-bsp/multitech/mtac-lora_1.1.4.bb')
-rw-r--r-- | recipes-bsp/multitech/mtac-lora_1.1.4.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mtac-lora_1.1.4.bb b/recipes-bsp/multitech/mtac-lora_1.1.4.bb new file mode 100644 index 0000000..603db92 --- /dev/null +++ b/recipes-bsp/multitech/mtac-lora_1.1.4.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "MTAC LoRa Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" +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-lora.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}" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} |