summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mtac-lora_1.1.9.bb
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2021-12-22 14:52:22 -0600
committerJason Reiss <jreiss@multitech.com>2021-12-22 14:52:22 -0600
commitd22540a6ad2d89d8383dbe79448e003c5bd901ad (patch)
tree84a30833453c31922522cb1554127a362d97b10c /recipes-bsp/multitech/mtac-lora_1.1.9.bb
parent611e25df151928fbd28ec23e76d0e299bcfaaf28 (diff)
downloadmeta-multitech-d22540a6ad2d89d8383dbe79448e003c5bd901ad.tar.gz
meta-multitech-d22540a6ad2d89d8383dbe79448e003c5bd901ad.tar.bz2
meta-multitech-d22540a6ad2d89d8383dbe79448e003c5bd901ad.zip
lora: update mtac-lora with temp GPIO pins for MTAC-003, needs support for MTCDT-0.2
Diffstat (limited to 'recipes-bsp/multitech/mtac-lora_1.1.9.bb')
-rw-r--r--recipes-bsp/multitech/mtac-lora_1.1.9.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mtac-lora_1.1.9.bb b/recipes-bsp/multitech/mtac-lora_1.1.9.bb
new file mode 100644
index 0000000..447eb6e
--- /dev/null
+++ b/recipes-bsp/multitech/mtac-lora_1.1.9.bb
@@ -0,0 +1,59 @@
+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"
+do_fetch[depends]+="virtual/kernel:do_shared_workdir"
+DEPENDS = "virtual/kernel mtac mts-io"
+RDEPENDS_${PN} = "kernel-module-mtac"
+INC_PR = "r1"
+COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)"
+
+SRCREV = "${PV}"
+
+PR = "${INC_PR}.1"
+
+PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}"
+
+SRC_URI = " \
+ git://git@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;branch=master \
+"
+
+S = "${WORKDIR}/git"
+
+inherit module
+
+MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \
+ ${STAGING_INCDIR}/mtac/Module.symvers"
+
+COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \
+ KBUILD_VERBOSE=1 \
+ KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \
+ M=${S} \
+ modules \
+ "
+
+EXTRA_OEMAKE_mtcdt = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \
+ -D SAM9G25'"
+EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \
+ -D TI43X'"
+
+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
+}