blob: e7b09fd19cd2aa0634e465790278d44969687972 (
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
|
DESCRIPTION = "LoRa Gateway Geolocation library"
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 = ""
PR = "r2"
SRCREV = "v${PV}"
SRC_URI = "http://multitech.net/downloads/lora-packet-forwarder-geolocation_arm926ejste_${PV}.tar.gz \
file://config.json \
file://config_64ch.json \
"
SRC_URI[md5sum] = "fabc5388a9ff17d7c7d2040e830d691a"
SRC_URI[sha256sum] = "4359c975618832fb9e274b273d6e297a8496833e0b75a321fda2c19d6ea8ef70"
S = "${WORKDIR}"
CFLAGS += "-Iinc -I."
do_compile() {
}
do_install() {
install -d ${D}${includedir}/lora
install -d ${D}${libdir}/lora
install -m 0644 mlinux4/libsx1301ar/* ${D}${includedir}/lora
install -d ${D}/sbin
install -m 0755 mlinux4/gateway-utils-geo/fpga_flash_loader ${D}/sbin/sem-fpga-loader
install -d ${D}/opt/lora/
install -d ${D}/opt/lora/gateway-utils-geo
install -m 0755 mlinux4/gateway-utils-geo/* ${D}/opt/lora/gateway-utils-geo/
install -m 0755 ${WORKDIR}/config.json ${D}/opt/lora/gateway-utils-geo/
install -m 0755 ${WORKDIR}/config_64ch.json ${D}/opt/lora/gateway-utils-geo/
}
PACKAGES += "${PN}-utils ${PN}-utils-dbg"
FILES_${PN} = "${libdir}/lora/lora-gw-geolocation-readme.md ${includedir}/lora /usr/lib/"
FILES_${PN}-utils = "/opt/lora/gateway-utils-geo/* /sbin/sem-fpga-loader"
FILES_${PN}-utils-dbg = "/opt/lora/gateway-utils-geo/.debug "
FILES_${PN}-staticdev = "${libdir}/lora/libsx1301ar.a"
# disable this on purpose for dev purposes
do_rm_work() {
echo "skipping"
}
|