From e7481c0265b92dac24199d3800b49e5232ed3526 Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Mon, 23 Jan 2023 10:44:31 -0600 Subject: lora: update gateway and forwarder recipes --- .../lora/lora-basic-station_2.0.5-3.bb | 68 ----------------- .../lora/lora-basic-station_2.0.6-11.bb | 68 +++++++++++++++++ .../lora/lora-gateway-sx1303_2.0.39.bb | 88 ---------------------- .../lora/lora-gateway-sx1303_2.0.42.bb | 88 ++++++++++++++++++++++ recipes-connectivity/lora/lora-gateway_5.0.21.bb | 68 ----------------- recipes-connectivity/lora/lora-gateway_5.0.22.bb | 68 +++++++++++++++++ .../lora/lora-network-server_2.6.12.bb | 48 ++++++++++++ .../lora/lora-network-server_2.6.2.bb | 48 ------------ .../lora-packet-forwarder.init | 4 +- 9 files changed, 274 insertions(+), 274 deletions(-) delete mode 100644 recipes-connectivity/lora/lora-basic-station_2.0.5-3.bb create mode 100644 recipes-connectivity/lora/lora-basic-station_2.0.6-11.bb delete mode 100644 recipes-connectivity/lora/lora-gateway-sx1303_2.0.39.bb create mode 100644 recipes-connectivity/lora/lora-gateway-sx1303_2.0.42.bb delete mode 100644 recipes-connectivity/lora/lora-gateway_5.0.21.bb create mode 100644 recipes-connectivity/lora/lora-gateway_5.0.22.bb create mode 100644 recipes-connectivity/lora/lora-network-server_2.6.12.bb delete mode 100644 recipes-connectivity/lora/lora-network-server_2.6.2.bb diff --git a/recipes-connectivity/lora/lora-basic-station_2.0.5-3.bb b/recipes-connectivity/lora/lora-basic-station_2.0.5-3.bb deleted file mode 100644 index 7568330..0000000 --- a/recipes-connectivity/lora/lora-basic-station_2.0.5-3.bb +++ /dev/null @@ -1,68 +0,0 @@ -DESCRIPTION = "LoRa Basic Station" -HOMEPAGE = "https://github.com/lorabasics/basicstation" -PRIORITY = "optional" -SECTION = "console/utils" -# Semtech license is a modified BSD-style license -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://LICENSE;md5=7706b51ea6d730e45568141c660072d5" -DEPENDS = "lora-gateway logrotate lora-logging mbedtls" -RDEPENDS_${PN} += "bash" -PR = "r3" - -SRCREV = "${PV}" - -SRC_URI = "git://github.com/MultiTechSystems/basicstation.git;protocol=https;branch=master \ - file://setup.gmk \ - file://lora-basic-station.init \ - file://lora-basic-station.default \ - file://tc.uri \ - file://mtcap-station.conf \ - file://mtcdt-station.conf \ -" - -S = "${WORKDIR}/git" -B = "${S}" - -LORA_DIR = "/opt/lora" - -export LGW_PATH = "${STAGING_LIBDIR}/lora" -export LGW_INC = "${STAGING_INCDIR}/lora" - -CFLAGS += "-I${STAGING_INCDIR} -I${STAGING_INCDIR}/lora -I${WORKDIR}/git/deps -Iinc -I. -std=gnu11 -L${STAGING_LIBDIR}/lora" - -do_compile() { - rm -fr ${S}/deps/lgw - ln -s ${STAGING_INCDIR}/lora ${S}/deps/lgw - cp ${WORKDIR}/setup.gmk ${S}/setup.gmk - oe_runmake -} - -do_install() { - install -d ${D}${LORA_DIR} - install -m 755 ${S}/build-mlinux-std/bin/station ${D}${LORA_DIR}/ - install -m 755 ${WORKDIR}/tc.uri ${D}${LORA_DIR}/ - - install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/lora-basic-station.default ${D}${sysconfdir}/default/lora-basic-station - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/lora-basic-station.init ${D}${sysconfdir}/init.d/lora-basic-station -} - -do_install_append_mtcap() { - install -d ${D}${LORA_DIR} - install -m 755 ${WORKDIR}/mtcap-station.conf ${D}${LORA_DIR}/station.conf -} - -do_install_append_mtcdt() { - install -d ${D}${LORA_DIR} - install -m 755 ${WORKDIR}/mtcdt-station.conf ${D}${LORA_DIR}/station.conf -} - - - -FILES_${PN} += "${LORA_DIR}" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-connectivity/lora/lora-basic-station_2.0.6-11.bb b/recipes-connectivity/lora/lora-basic-station_2.0.6-11.bb new file mode 100644 index 0000000..7568330 --- /dev/null +++ b/recipes-connectivity/lora/lora-basic-station_2.0.6-11.bb @@ -0,0 +1,68 @@ +DESCRIPTION = "LoRa Basic Station" +HOMEPAGE = "https://github.com/lorabasics/basicstation" +PRIORITY = "optional" +SECTION = "console/utils" +# Semtech license is a modified BSD-style license +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7706b51ea6d730e45568141c660072d5" +DEPENDS = "lora-gateway logrotate lora-logging mbedtls" +RDEPENDS_${PN} += "bash" +PR = "r3" + +SRCREV = "${PV}" + +SRC_URI = "git://github.com/MultiTechSystems/basicstation.git;protocol=https;branch=master \ + file://setup.gmk \ + file://lora-basic-station.init \ + file://lora-basic-station.default \ + file://tc.uri \ + file://mtcap-station.conf \ + file://mtcdt-station.conf \ +" + +S = "${WORKDIR}/git" +B = "${S}" + +LORA_DIR = "/opt/lora" + +export LGW_PATH = "${STAGING_LIBDIR}/lora" +export LGW_INC = "${STAGING_INCDIR}/lora" + +CFLAGS += "-I${STAGING_INCDIR} -I${STAGING_INCDIR}/lora -I${WORKDIR}/git/deps -Iinc -I. -std=gnu11 -L${STAGING_LIBDIR}/lora" + +do_compile() { + rm -fr ${S}/deps/lgw + ln -s ${STAGING_INCDIR}/lora ${S}/deps/lgw + cp ${WORKDIR}/setup.gmk ${S}/setup.gmk + oe_runmake +} + +do_install() { + install -d ${D}${LORA_DIR} + install -m 755 ${S}/build-mlinux-std/bin/station ${D}${LORA_DIR}/ + install -m 755 ${WORKDIR}/tc.uri ${D}${LORA_DIR}/ + + install -d ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/lora-basic-station.default ${D}${sysconfdir}/default/lora-basic-station + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/lora-basic-station.init ${D}${sysconfdir}/init.d/lora-basic-station +} + +do_install_append_mtcap() { + install -d ${D}${LORA_DIR} + install -m 755 ${WORKDIR}/mtcap-station.conf ${D}${LORA_DIR}/station.conf +} + +do_install_append_mtcdt() { + install -d ${D}${LORA_DIR} + install -m 755 ${WORKDIR}/mtcdt-station.conf ${D}${LORA_DIR}/station.conf +} + + + +FILES_${PN} += "${LORA_DIR}" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} diff --git a/recipes-connectivity/lora/lora-gateway-sx1303_2.0.39.bb b/recipes-connectivity/lora/lora-gateway-sx1303_2.0.39.bb deleted file mode 100644 index 68a6322..0000000 --- a/recipes-connectivity/lora/lora-gateway-sx1303_2.0.39.bb +++ /dev/null @@ -1,88 +0,0 @@ -DESCRIPTION = "LoRa Packet Forwarder" -HOMEPAGE = "https://github.com/MultiTechSystems/sx1302_hal" -PRIORITY = "optional" -SECTION = "console/utils" -# Semtech license is a modified BSD-style license -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d2119120bd616e725f4580070bd9ee19" -DEPENDS = "logrotate gpsd" -RDEPENDS_${PN} += "bash" - -PR = "r9" - -#SRCREV = "06531662f3ef73a0e9878ed5313451d8a6cafbc5" -SRCREV = "V${PV}" - -SRC_URI = "git://github.com/MultiTechSystems/sx1302_hal.git;protocol=https;branch=master \ - file://reset_lgw.sh \ - file://global_conf.json.MTAC_003_0_0.EU868 \ - file://global_conf.json.MTAC_003_0_0.US915 \ - file://global_conf.json.MTCAP3.EU868 \ - file://global_conf.json.MTCAP3.US915 \ -" - -SRC_URI[sha256sum] = "dbfebdee1292e891d32bca52a9ef78b350557383d4d86c96c198e182249aa30f" - - -S = "${WORKDIR}/git" -B = "${S}" - -LORA_DIR = "/opt/lora" - - -CFLAGS += "-DNODEBUG -I${S}/packet_forwarder/inc -I${S}/libloragw/inc -I${S}/libtools/inc -I${S}/inc -I. -idirafter ${STAGING_DIR_TARGET}/usr/include/gps -std=gnu11" - -do_compile() { - oe_runmake packet_forwarder LDFLAGS=${LDFLAGS} - oe_runmake util_boot LDFLAGS=${LDFLAGS} - oe_runmake util_chip_id FLAGS=${LDFLAGS} - oe_runmake util_net_downlink LDFLAGS=${LDFLAGS} - oe_runmake util_spectral_scan LDFLAGS=${LDFLAGS} -} - -do_install() { - install -d ${D}${LORA_DIR} - install -d ${D}${libdir}/lora - install -d ${D}${libdir}/lora/lgw-sx1303/lgw - install -d ${D}${includedir}/lora/lgw-sx1303/lgw - - install -m 0644 libloragw/libloragw.a ${D}${libdir}/lora/lgw-sx1303/lgw/ - install -m 0644 libloragw/library.cfg ${D}${libdir}/lora/lgw-sx1303/lgw/ - install -m 0644 libloragw/inc/* ${D}${includedir}/lora/lgw-sx1303/lgw/ - - install -d ${D}${LORA_DIR}/forwarder-utils-sx1303 - install -d ${D}${LORA_DIR}/gateway-utils-sx1303 - install -m 755 ${WORKDIR}/reset_lgw.sh ${D}${LORA_DIR}/ - install -m 755 packet_forwarder/lora_pkt_fwd ${D}${LORA_DIR}/lora_pkt_fwd_sx1303 - install -m 755 libloragw/test_loragw* ${D}${LORA_DIR}/gateway-utils-sx1303/ - install -m 755 util_boot/boot ${D}${LORA_DIR}/forwarder-utils-sx1303/util_boot - install -m 755 util_chip_id/chip_id ${D}${LORA_DIR}/forwarder-utils-sx1303/util_chip_id - install -m 755 util_net_downlink/net_downlink ${D}${LORA_DIR}/forwarder-utils-sx1303/util_net_downlink - install -m 755 util_spectral_scan/spectral_scan ${D}${LORA_DIR}/forwarder-utils-sx1303/ -} - -do_install_append_mtcdt() { - install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.EU868 ${D}${LORA_DIR}/ - install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.US915 ${D}${LORA_DIR}/ -} - -do_install_append_mtcap() { -} - -do_install_append_mtcap3() { - install -m 755 ${WORKDIR}/global_conf.json.MTCAP3.EU868 ${D}${LORA_DIR}/ - install -m 755 ${WORKDIR}/global_conf.json.MTCAP3.US915 ${D}${LORA_DIR}/ -} - -do_install_append_mtcpmhs() { - install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.EU868 ${D}${LORA_DIR}/ - install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.US915 ${D}${LORA_DIR}/ -} - - -FILES_${PN} += "${LORA_DIR}" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-connectivity/lora/lora-gateway-sx1303_2.0.42.bb b/recipes-connectivity/lora/lora-gateway-sx1303_2.0.42.bb new file mode 100644 index 0000000..68a6322 --- /dev/null +++ b/recipes-connectivity/lora/lora-gateway-sx1303_2.0.42.bb @@ -0,0 +1,88 @@ +DESCRIPTION = "LoRa Packet Forwarder" +HOMEPAGE = "https://github.com/MultiTechSystems/sx1302_hal" +PRIORITY = "optional" +SECTION = "console/utils" +# Semtech license is a modified BSD-style license +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d2119120bd616e725f4580070bd9ee19" +DEPENDS = "logrotate gpsd" +RDEPENDS_${PN} += "bash" + +PR = "r9" + +#SRCREV = "06531662f3ef73a0e9878ed5313451d8a6cafbc5" +SRCREV = "V${PV}" + +SRC_URI = "git://github.com/MultiTechSystems/sx1302_hal.git;protocol=https;branch=master \ + file://reset_lgw.sh \ + file://global_conf.json.MTAC_003_0_0.EU868 \ + file://global_conf.json.MTAC_003_0_0.US915 \ + file://global_conf.json.MTCAP3.EU868 \ + file://global_conf.json.MTCAP3.US915 \ +" + +SRC_URI[sha256sum] = "dbfebdee1292e891d32bca52a9ef78b350557383d4d86c96c198e182249aa30f" + + +S = "${WORKDIR}/git" +B = "${S}" + +LORA_DIR = "/opt/lora" + + +CFLAGS += "-DNODEBUG -I${S}/packet_forwarder/inc -I${S}/libloragw/inc -I${S}/libtools/inc -I${S}/inc -I. -idirafter ${STAGING_DIR_TARGET}/usr/include/gps -std=gnu11" + +do_compile() { + oe_runmake packet_forwarder LDFLAGS=${LDFLAGS} + oe_runmake util_boot LDFLAGS=${LDFLAGS} + oe_runmake util_chip_id FLAGS=${LDFLAGS} + oe_runmake util_net_downlink LDFLAGS=${LDFLAGS} + oe_runmake util_spectral_scan LDFLAGS=${LDFLAGS} +} + +do_install() { + install -d ${D}${LORA_DIR} + install -d ${D}${libdir}/lora + install -d ${D}${libdir}/lora/lgw-sx1303/lgw + install -d ${D}${includedir}/lora/lgw-sx1303/lgw + + install -m 0644 libloragw/libloragw.a ${D}${libdir}/lora/lgw-sx1303/lgw/ + install -m 0644 libloragw/library.cfg ${D}${libdir}/lora/lgw-sx1303/lgw/ + install -m 0644 libloragw/inc/* ${D}${includedir}/lora/lgw-sx1303/lgw/ + + install -d ${D}${LORA_DIR}/forwarder-utils-sx1303 + install -d ${D}${LORA_DIR}/gateway-utils-sx1303 + install -m 755 ${WORKDIR}/reset_lgw.sh ${D}${LORA_DIR}/ + install -m 755 packet_forwarder/lora_pkt_fwd ${D}${LORA_DIR}/lora_pkt_fwd_sx1303 + install -m 755 libloragw/test_loragw* ${D}${LORA_DIR}/gateway-utils-sx1303/ + install -m 755 util_boot/boot ${D}${LORA_DIR}/forwarder-utils-sx1303/util_boot + install -m 755 util_chip_id/chip_id ${D}${LORA_DIR}/forwarder-utils-sx1303/util_chip_id + install -m 755 util_net_downlink/net_downlink ${D}${LORA_DIR}/forwarder-utils-sx1303/util_net_downlink + install -m 755 util_spectral_scan/spectral_scan ${D}${LORA_DIR}/forwarder-utils-sx1303/ +} + +do_install_append_mtcdt() { + install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.EU868 ${D}${LORA_DIR}/ + install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.US915 ${D}${LORA_DIR}/ +} + +do_install_append_mtcap() { +} + +do_install_append_mtcap3() { + install -m 755 ${WORKDIR}/global_conf.json.MTCAP3.EU868 ${D}${LORA_DIR}/ + install -m 755 ${WORKDIR}/global_conf.json.MTCAP3.US915 ${D}${LORA_DIR}/ +} + +do_install_append_mtcpmhs() { + install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.EU868 ${D}${LORA_DIR}/ + install -m 755 ${WORKDIR}/global_conf.json.MTAC_003_0_0.US915 ${D}${LORA_DIR}/ +} + + +FILES_${PN} += "${LORA_DIR}" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} diff --git a/recipes-connectivity/lora/lora-gateway_5.0.21.bb b/recipes-connectivity/lora/lora-gateway_5.0.21.bb deleted file mode 100644 index d3af872..0000000 --- a/recipes-connectivity/lora/lora-gateway_5.0.21.bb +++ /dev/null @@ -1,68 +0,0 @@ -DESCRIPTION = "LoRa Gateway library" -HOMEPAGE = "https://github.com/Lora-net/lora_gateway" -PRIORITY = "optional" -SECTION = "console/utils" -# Semtech license is a modified BSD-style license -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a2bdef95625509f821ba00460e3ae0eb" -DEPENDS = "gpsd" -RDEPENDS_${PN} = "libgps" - -PR = "r34" -SRCREV = "${PV}" - -SRC_URI = "git://git.multitech.net/cgit/lora_gateway_mtac_full.git;branch=master;protocol=https \ - file://library_4.0.cfg \ - file://ln-lora-spi-dev.sh \ - " - - -S = "${WORKDIR}/git" - -CFLAGS += "-Iinc -I. -idirafter ${STAGING_DIR_TARGET}/usr/include/gps" - -do_configure_append() { - # copy over custom library_4.0.cfg - cp ${WORKDIR}/library_4.0.cfg ${S}/libloragw/library.cfg -} - -do_compile() { - oe_runmake -} - -do_install() { - install -d ${D}${includedir}/lora - install -d ${D}${libdir}/lora - install -m 0644 libloragw/libloragw.a ${D}${libdir}/lora - install -m 0644 libloragw/library.cfg ${D}${libdir}/lora - install -m 0644 libloragw/inc/* ${D}${includedir}/lora - install -m 0644 libloragw/readme.md ${D}${libdir}/lora/lora-gw-readme.md - - install -d ${D}/opt/lora/ - - install -d ${D}/opt/lora/gateway-utils - install -m 0755 libloragw/test_* ${D}/opt/lora/gateway-utils/ - install -m 0755 util_pkt_logger/util_pkt_logger ${D}/opt/lora/gateway-utils/ - install -m 0755 util_spectral_scan/util_spectral_scan ${D}/opt/lora/gateway-utils/ - install -m 0755 util_spi_stress/util_spi_stress ${D}/opt/lora/gateway-utils/ - install -m 0755 util_tx_test/util_tx_test ${D}/opt/lora/gateway-utils/ - install -m 0755 util_tx_continuous/util_tx_continuous ${D}/opt/lora/gateway-utils/ - install -m 0755 util_lbt_test/util_lbt_test ${D}/opt/lora/gateway-utils/ -} - -do_install_append_mtcdt() { - install -m 0755 ${WORKDIR}/ln-lora-spi-dev.sh ${D}/opt/lora/ -} - -PACKAGES += "${PN}-utils ${PN}-utils-dbg" - -FILES_${PN} = "${libdir}/lora/lora-gw-readme.md" -FILES_${PN}-utils = "/opt/lora/gateway-utils/* /opt/lora/ln-lora-spi-dev.sh" -FILES_${PN}-utils-dbg = "/opt/lora/gateway-utils/.debug /opt/lora/ln-lora-spi-dev.sh" -FILES_${PN}-dev = "${includedir}/lora ${libdir}/lora/library.cfg" -FILES_${PN}-staticdev = "${libdir}/lora/libloragw.a" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-connectivity/lora/lora-gateway_5.0.22.bb b/recipes-connectivity/lora/lora-gateway_5.0.22.bb new file mode 100644 index 0000000..d3af872 --- /dev/null +++ b/recipes-connectivity/lora/lora-gateway_5.0.22.bb @@ -0,0 +1,68 @@ +DESCRIPTION = "LoRa Gateway library" +HOMEPAGE = "https://github.com/Lora-net/lora_gateway" +PRIORITY = "optional" +SECTION = "console/utils" +# Semtech license is a modified BSD-style license +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a2bdef95625509f821ba00460e3ae0eb" +DEPENDS = "gpsd" +RDEPENDS_${PN} = "libgps" + +PR = "r34" +SRCREV = "${PV}" + +SRC_URI = "git://git.multitech.net/cgit/lora_gateway_mtac_full.git;branch=master;protocol=https \ + file://library_4.0.cfg \ + file://ln-lora-spi-dev.sh \ + " + + +S = "${WORKDIR}/git" + +CFLAGS += "-Iinc -I. -idirafter ${STAGING_DIR_TARGET}/usr/include/gps" + +do_configure_append() { + # copy over custom library_4.0.cfg + cp ${WORKDIR}/library_4.0.cfg ${S}/libloragw/library.cfg +} + +do_compile() { + oe_runmake +} + +do_install() { + install -d ${D}${includedir}/lora + install -d ${D}${libdir}/lora + install -m 0644 libloragw/libloragw.a ${D}${libdir}/lora + install -m 0644 libloragw/library.cfg ${D}${libdir}/lora + install -m 0644 libloragw/inc/* ${D}${includedir}/lora + install -m 0644 libloragw/readme.md ${D}${libdir}/lora/lora-gw-readme.md + + install -d ${D}/opt/lora/ + + install -d ${D}/opt/lora/gateway-utils + install -m 0755 libloragw/test_* ${D}/opt/lora/gateway-utils/ + install -m 0755 util_pkt_logger/util_pkt_logger ${D}/opt/lora/gateway-utils/ + install -m 0755 util_spectral_scan/util_spectral_scan ${D}/opt/lora/gateway-utils/ + install -m 0755 util_spi_stress/util_spi_stress ${D}/opt/lora/gateway-utils/ + install -m 0755 util_tx_test/util_tx_test ${D}/opt/lora/gateway-utils/ + install -m 0755 util_tx_continuous/util_tx_continuous ${D}/opt/lora/gateway-utils/ + install -m 0755 util_lbt_test/util_lbt_test ${D}/opt/lora/gateway-utils/ +} + +do_install_append_mtcdt() { + install -m 0755 ${WORKDIR}/ln-lora-spi-dev.sh ${D}/opt/lora/ +} + +PACKAGES += "${PN}-utils ${PN}-utils-dbg" + +FILES_${PN} = "${libdir}/lora/lora-gw-readme.md" +FILES_${PN}-utils = "/opt/lora/gateway-utils/* /opt/lora/ln-lora-spi-dev.sh" +FILES_${PN}-utils-dbg = "/opt/lora/gateway-utils/.debug /opt/lora/ln-lora-spi-dev.sh" +FILES_${PN}-dev = "${includedir}/lora ${libdir}/lora/library.cfg" +FILES_${PN}-staticdev = "${libdir}/lora/libloragw.a" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} diff --git a/recipes-connectivity/lora/lora-network-server_2.6.12.bb b/recipes-connectivity/lora/lora-network-server_2.6.12.bb new file mode 100644 index 0000000..de3b950 --- /dev/null +++ b/recipes-connectivity/lora/lora-network-server_2.6.12.bb @@ -0,0 +1,48 @@ +DESCRIPTION = "MultiTech LoRa Network Server" +PRIORITY = "optional" +SECTION = "console/utils" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2b9a30a3082ddccd2c695a4dbeeab80d" +DEPENDS = "jsoncpp libmts mosquitto sqlite3 curl gnutls" +RDEPENDS_${PN} += "logrotate bash lora-logging jsoncpp" +PR = "r0" +CONFFILES_${PN} += "${sysconfdir}/default/lora-network-server ${sysconfdir}/init.d/lora-network-server" + +SRC_URI = "https://multitech.net/downloads/lora-network-server_${PV}.tar.gz \ + file://lora-network-server.init \ + file://lora-network-server.default \ + " + +SRC_URI[md5sum] = "279c3c52cd05d2894946c0a458d6a391" +SRC_URI[sha256sum] = "19a2d07afbc580c7c202a29b68b969951929de8eea099fd9918c1435883bf82a" + +# binaries are already stripped, so suppress warning +INSANE_SKIP_${PN} = "already-stripped" + +S = "${WORKDIR}" + +LORA_DIR = "/opt/lora" + +do_compile() { +} + +inherit update-rc.d + +INITSCRIPT_NAME = "lora-network-server" +INITSCRIPT_PARAMS = "defaults 80 30" + +do_install() { + install -d ${D}${LORA_DIR} + install -m 0755 lora-network-server-arm926ejste-mlinux-6 ${D}${LORA_DIR}/lora-network-server + install -m 0755 lora-v21-keygen-arm926ejste-mlinux-6 ${D}${LORA_DIR}/lora-v21-keygen + install -m 0644 config/lora-network-server.conf.sample ${D}${LORA_DIR}/lora-network-server.conf.sample + install -m 0644 config/lora-network-server.conf.full ${D}${LORA_DIR}/lora-network-server.conf.full + + install -d ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/lora-network-server.default ${D}${sysconfdir}/default/lora-network-server + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/lora-network-server.init ${D}${sysconfdir}/init.d/lora-network-server +} + +FILES_${PN} += "${LORA_DIR}" +FILES_${PN}-dbg += "${LORA_DIR}/.debug" diff --git a/recipes-connectivity/lora/lora-network-server_2.6.2.bb b/recipes-connectivity/lora/lora-network-server_2.6.2.bb deleted file mode 100644 index de3b950..0000000 --- a/recipes-connectivity/lora/lora-network-server_2.6.2.bb +++ /dev/null @@ -1,48 +0,0 @@ -DESCRIPTION = "MultiTech LoRa Network Server" -PRIORITY = "optional" -SECTION = "console/utils" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://LICENSE;md5=2b9a30a3082ddccd2c695a4dbeeab80d" -DEPENDS = "jsoncpp libmts mosquitto sqlite3 curl gnutls" -RDEPENDS_${PN} += "logrotate bash lora-logging jsoncpp" -PR = "r0" -CONFFILES_${PN} += "${sysconfdir}/default/lora-network-server ${sysconfdir}/init.d/lora-network-server" - -SRC_URI = "https://multitech.net/downloads/lora-network-server_${PV}.tar.gz \ - file://lora-network-server.init \ - file://lora-network-server.default \ - " - -SRC_URI[md5sum] = "279c3c52cd05d2894946c0a458d6a391" -SRC_URI[sha256sum] = "19a2d07afbc580c7c202a29b68b969951929de8eea099fd9918c1435883bf82a" - -# binaries are already stripped, so suppress warning -INSANE_SKIP_${PN} = "already-stripped" - -S = "${WORKDIR}" - -LORA_DIR = "/opt/lora" - -do_compile() { -} - -inherit update-rc.d - -INITSCRIPT_NAME = "lora-network-server" -INITSCRIPT_PARAMS = "defaults 80 30" - -do_install() { - install -d ${D}${LORA_DIR} - install -m 0755 lora-network-server-arm926ejste-mlinux-6 ${D}${LORA_DIR}/lora-network-server - install -m 0755 lora-v21-keygen-arm926ejste-mlinux-6 ${D}${LORA_DIR}/lora-v21-keygen - install -m 0644 config/lora-network-server.conf.sample ${D}${LORA_DIR}/lora-network-server.conf.sample - install -m 0644 config/lora-network-server.conf.full ${D}${LORA_DIR}/lora-network-server.conf.full - - install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/lora-network-server.default ${D}${sysconfdir}/default/lora-network-server - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/lora-network-server.init ${D}${sysconfdir}/init.d/lora-network-server -} - -FILES_${PN} += "${LORA_DIR}" -FILES_${PN}-dbg += "${LORA_DIR}/.debug" diff --git a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init index 092e0a5..6aaf26f 100755 --- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init +++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init @@ -203,9 +203,9 @@ setup_mtcap3() { setup_mtcdt() { if [ -d $port1 ] && [[ $(cat $port1/hw-version) = $lora_hw ]]; then - ln -sf /dev/spidev32766.2 /dev/spidev0.0 + ln -sf /dev/spidev0.2 /dev/spidev0.0 elif [ -d $port2 ] && [[ $(cat $port2/hw-version) = $lora_hw ]]; then - ln -sf /dev/spidev32765.2 /dev/spidev0.0 + ln -sf /dev/spidev1.2 /dev/spidev0.0 fi if [ "$lora_hw" = "$lora_1_0_hw" ] && [[ ! "$lora_id" =~ .*-SPI ]]; then -- cgit v1.2.3