summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-packet-forwarder-geolocation_5.1.0.bb
blob: bf650a5d50ffa8b60565a6eb499b62b51bccb95f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
DESCRIPTION = "LoRa Packet Forwarder Geolocation"
PRIORITY = "optional"
SECTION = "console/utils"
# Semtech license is a modified BSD-style license
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://mlinux4/LICENSE.TXT;md5=86776875df1423114abfcec938f3e565"
DEPENDS ?= "lora-gateway-geolocation"
RDEPENDS_${PN} += "bash"
PR = "r1"

SRCREV = "v${PV}"

SRC_URI = "http://multitech.net/downloads/lora-packet-forwarder-geolocation_arm926ejste_${PV}.tar.gz \
           file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_full_diversity_EU868 \            
           file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_full_diversity_JP920 \
           file://global_conf.json.MTAC_LORA_2_1_loc_dual_antenna_8ch_partial_diversity_EU868 \
           file://global_conf.json.MTAC_LORA_2_1_loc_single_antenna_16ch_EU868 \
           file://global_conf.json.MTAC_LORA_2_1_loc_single_antenna_16ch_US915 \
           file://global_conf.json.MTAC_LORA_2_1_loc_single_antenna_64ch_US915 \
           file://global_conf.json.MTAC_LORA_2_1_loc_single_antenna_full_duplex_64ch_US915 \
           file://global_conf.json.MTAC_LORA_2_1_test_dual_antenna_56ch_partial_diversity_EU868 \
           file://global_conf.json.MTAC_LORA_2_1_test_single_antenna_16ch_16x1_EU868 \
           file://global_conf.json.MTAC_LORA_2_1_test_single_antenna_64ch_64x1_EU868 \
           file://global_conf.json.MTAC_LORA_2_1_test_single_antenna_64ch_8x8_EU868 \
"

SRC_URI[md5sum] = "fabc5388a9ff17d7c7d2040e830d691a"
SRC_URI[sha256sum] = "4359c975618832fb9e274b273d6e297a8496833e0b75a321fda2c19d6ea8ef70"

S = "${WORKDIR}"
B = "${S}"

LORA_DIR = "/opt/lora"

export LGW_PATH = "${STAGING_LIBDIR}/lora"
export LGW_INC = "${STAGING_INCDIR}/lora"

do_compile() {
}

do_install() {
  install -d ${D}${LORA_DIR}
  install -m 755 mlinux4/pkt_forwarder ${D}${LORA_DIR}/
  install -m 755 ${WORKDIR}/global_conf.json.MTAC_LORA_2_1* ${D}${LORA_DIR}/
  install -d ${D}${LORA_DIR}/forwarder-utils-geo
  install -m 755 mlinux4/forwarder-utils-geo/* ${D}${LORA_DIR}/forwarder-utils-geo/
}


FILES_${PN} += "${LORA_DIR}"
FILES_${PN}-dbg += "${LORA_DIR}/.debug ${LORA_DIR}/forwarder-utils-geo/.debug"

# disable this on purpose for dev purposes
do_rm_work() {
  echo "skipping"
}