DESCRIPTION = "LoRa Packet Forwarder" HOMEPAGE = "https://github.com/Lora-net/packet_forwarder" PRIORITY = "optional" SECTION = "console/utils" # Semtech license is a modified BSD-style license LICENSE = "SEMTECH" LIC_FILES_CHKSUM = "file://LICENSE;md5=22af7693d7b76ef0fc76161c4be76c45" DEPENDS = "lora-gateway" PR = "r0" SRCREV = "v${PV}" SRC_URI = "git://github.com/Lora-net/packet_forwarder.git;protocol=git \ file://README.md \ " S = "${WORKDIR}/git" LORA_DIR = "/opt/lora" export LGW_PATH = "${STAGING_LIBDIR}/lora" export LGW_INC = "${STAGING_INCDIR}/lora" CFLAGS += "-I${LGW_INC} -Iinc -I." do_compile() { oe_runmake } do_install() { install -d ${D}${LORA_DIR} install -m 755 lora_pkt_fwd/lora_pkt_fwd ${D}${LORA_DIR}/ install -m 755 lora_pkt_fwd/cfg/global_conf.json.PCB_E336.EU868.basic ${D}${LORA_DIR}/global_conf.json install -m 755 util_sink/util_sink ${D}${LORA_DIR}/ install -m 755 util_ack/util_ack ${D}${LORA_DIR}/ install -m 755 util_tx_test/util_tx_test ${D}${LORA_DIR}/ install -m 755 ${WORKDIR}/README.md ${D}${LORA_DIR}/ } FILES_${PN} += "${LORA_DIR}" FILES_${PN}-dbg += "${LORA_DIR}/.debug" # disable this on purpose for dev purposes do_rm_work() { echo "skipping" }