diff options
author | Mykola Salomatin <mykola.salomatin@globallogic.com> | 2023-01-26 19:30:38 +0200 |
---|---|---|
committer | Mykola Salomatin <mykola.salomatin@globallogic.com> | 2023-01-26 19:30:38 +0200 |
commit | 8b2c5033c01df17ce1bed9489570a5e56e3be862 (patch) | |
tree | 8a7abda338d1c144e904cd54e6ab99322119969e /recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb | |
parent | e77d906d6f9d0da38ab5faff8b2a11a4383650de (diff) | |
parent | 755c00a4dfc34c95640e832ca8cafb71a7d356aa (diff) | |
download | meta-mlinux-8b2c5033c01df17ce1bed9489570a5e56e3be862.tar.gz meta-mlinux-8b2c5033c01df17ce1bed9489570a5e56e3be862.tar.bz2 meta-mlinux-8b2c5033c01df17ce1bed9489570a5e56e3be862.zip |
Merge branch '6' into mpower-dev-l6g1
Diffstat (limited to 'recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb')
-rw-r--r-- | recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb b/recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb new file mode 100644 index 0000000..4e48df3 --- /dev/null +++ b/recipes-connectivity/lora/lora-basic-station-sx1303_2.0.6-11.bb @@ -0,0 +1,73 @@ +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=26699ffb0048fefa02c871c2485867ee" +DEPENDS = "lora-gateway-sx1303 logrotate lora-logging mbedtls gpsd" +RDEPENDS_${PN} += "bash" +PR = "r4" + +# SRCREV = "9bf824154731cbe78366cbffa1b0c6bd0354b66f" +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://mtcap3-station.conf.E00 \ + file://mtcap3-station.conf.U00 \ + file://mtcdt-station.conf.E00 \ + file://mtcdt-station.conf.U00 \ +" + +S = "${WORKDIR}/git" +B = "${S}" + +LORA_DIR = "/opt/lora" + +export LGW_PATH = "${STAGING_LIBDIR}/lora" +export LGW_INC = "${STAGING_INCDIR}/lora" + +CFLAGS += "-isystem =/usr/include/gps -DNODEBUG -I${STAGING_INCDIR} -I${WORKDIR}/git/libtools -I${STAGING_INCDIR}/lora -I${STAGING_INCDIR}/lora/lgw-sx1303 -I${WORKDIR}/git/deps -Iinc -I. -std=gnu11 -L${WORKDIR}/git/libtools -L${STAGING_LIBDIR}/lora/lgw-sx1303/lgw/ -L${STAGING_LIBDIR}/lora" + +do_compile() { + cp ${WORKDIR}/setup.gmk ${S}/setup.gmk + oe_runmake +} + +do_install() { + install -d ${D}${LORA_DIR} + install -m 755 ${S}/build-mlinux-sx1303/bin/station ${D}${LORA_DIR}/station-sx1303 +} + +do_install_append_mtcdt() { + install -d ${D}${LORA_DIR} + install -m 755 ${WORKDIR}/mtcdt-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf + install -m 755 ${WORKDIR}/mtcdt-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf.E00 + install -m 755 ${WORKDIR}/mtcdt-station.conf.U00 ${D}${LORA_DIR}/station-sx1303.conf.U00 +} + +do_install_append_mtcpmhs() { + install -d ${D}${LORA_DIR} + install -m 755 ${WORKDIR}/mtcdt-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf + install -m 755 ${WORKDIR}/mtcdt-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf.E00 + install -m 755 ${WORKDIR}/mtcdt-station.conf.U00 ${D}${LORA_DIR}/station-sx1303.conf.U00 +} + +do_install_append_mtcap3() { + install -d ${D}${LORA_DIR} + install -m 755 ${WORKDIR}/mtcap3-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf + install -m 755 ${WORKDIR}/mtcap3-station.conf.E00 ${D}${LORA_DIR}/station-sx1303.conf.E00 + install -m 755 ${WORKDIR}/mtcap3-station.conf.U00 ${D}${LORA_DIR}/station-sx1303.conf.U00 +} + + +FILES_${PN} += "${LORA_DIR}" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} |