From 4e06d550e52ce8d2b1d04a66e4a08089c6bf0165 Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Wed, 8 Sep 2021 10:37:55 -0500 Subject: lora: update basic station --- .../lora/lora-basic-station_2.0.5-3.bb | 75 ---------------------- .../lora/lora-basic-station_2.0.5-8.bb | 75 ++++++++++++++++++++++ 2 files changed, 75 insertions(+), 75 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.5-8.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 3dc1638..0000000 --- a/recipes-connectivity/lora/lora-basic-station_2.0.5-3.bb +++ /dev/null @@ -1,75 +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=git;branch=master \ - file://setup.gmk \ - file://lora-basic-station.init \ - file://lora-basic-station.default \ - file://tc.uri \ - file://mtcap-station.conf \ - file://mtcap2-station.conf \ - file://mtcap2-station.conf.EU868 \ - file://mtcap2-station.conf.US915 \ - 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 src/kwcrc.h - oe_runmake all -} - -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 644 ${WORKDIR}/mtcap-station.conf ${D}${LORA_DIR}/station.conf - install -m 644 ${WORKDIR}/mtcap2-station.conf ${D}${LORA_DIR}/ - install -m 644 ${WORKDIR}/mtcap2-station.conf.US915 ${D}${LORA_DIR}/ - install -m 644 ${WORKDIR}/mtcap2-station.conf.EU868 ${D}${LORA_DIR}/ -} - -do_install_append_mtcdt() { - install -d ${D}${LORA_DIR} - install -m 644 ${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.5-8.bb b/recipes-connectivity/lora/lora-basic-station_2.0.5-8.bb new file mode 100644 index 0000000..3dc1638 --- /dev/null +++ b/recipes-connectivity/lora/lora-basic-station_2.0.5-8.bb @@ -0,0 +1,75 @@ +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=git;branch=master \ + file://setup.gmk \ + file://lora-basic-station.init \ + file://lora-basic-station.default \ + file://tc.uri \ + file://mtcap-station.conf \ + file://mtcap2-station.conf \ + file://mtcap2-station.conf.EU868 \ + file://mtcap2-station.conf.US915 \ + 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 src/kwcrc.h + oe_runmake all +} + +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 644 ${WORKDIR}/mtcap-station.conf ${D}${LORA_DIR}/station.conf + install -m 644 ${WORKDIR}/mtcap2-station.conf ${D}${LORA_DIR}/ + install -m 644 ${WORKDIR}/mtcap2-station.conf.US915 ${D}${LORA_DIR}/ + install -m 644 ${WORKDIR}/mtcap2-station.conf.EU868 ${D}${LORA_DIR}/ +} + +do_install_append_mtcdt() { + install -d ${D}${LORA_DIR} + install -m 644 ${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" +} -- cgit v1.2.3