Commit 42667376 authored by Karel Hanák's avatar Karel Hanák
Browse files

updated iqrf sw to latest versions, rpi specific daemon config

parent 7692c953
LICENSE = "Apache-2.0"
HOMEPAGE = "https://gitlab.iqrf.org/gateway/iqrf-gateway-controller"
DESCRIPTION = "IQRF Gateway LED and button controller"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7f70dbf1f2f966641457babf04506a1f"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0a67a1832c6325eeb05fbe7a41541a4a"
inherit cmake systemd
DEPENDS = "boost rapidjson websocketpp asio"
SRC_URI = "git://git@gitlab.iqrf.org:2222/gateway/iqrf-gateway-controller.git;protocol=ssh;tag=v${PV};branch=release/v1.1.x;name=gw-controller \
SRC_URI = "git://git@gitlab.iqrf.org:2222/gateway/iqrf-gateway-controller.git;protocol=ssh;tag=v${PV};branch=release/v1.2.x;name=gw-controller \
file://0001-Fix-webapp-factory-reset.patch \
"
......
......@@ -13,8 +13,6 @@ SRC_URI = "gitsm://gitlab.iqrf.org/open-source/iqrf-gateway-daemon.git;protocol=
file://iqrf-gateway-daemon.service \
"
require recipes-iqrf/iqd-gw-01/iqd-gw-01.inc
SRCREV_FORMAT = "daemon_iqd-gw-01"
S = "${WORKDIR}/git"
......@@ -46,7 +44,7 @@ do_install_append() {
install -d ${D}${sysconfdir}/iqrf-gateway-daemon/certs
install -d ${D}${sysconfdir}/iqrf-gateway-daemon/certs/core
install -d ${D}/var/cache/iqrf-gateway-daemon
install -d ${D}/var/cache/iqrf-gateway-daemon
install -d ${D}/var/cache/iqrf-gateway-daemon/upload
# run update cache
......@@ -72,13 +70,4 @@ do_install_append() {
bbwarn "${l}"
cp ${l} ${D}${libdir}/iqrf-gateway-daemon
done
# default uart
#install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/config.json ${D}${sysconfdir}/iqrf-gateway-daemon
# custom for iqube
install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/iqrf__IqrfSpi.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/iqrf__IqrfUart.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/iqrf__MqttMessaging.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/iqrf__IdeCounterpart.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqd-gw-01/conf/iqrf-gateway-daemon/iqrf__JsCache.json ${D}${sysconfdir}/iqrf-gateway-daemon
}
......@@ -7,10 +7,10 @@ inherit cmake systemd
DEPENDS = "boost rapidjson"
SRCREV = "${AUTOREV}"
#SRCREV = "${AUTOREV}"
SRC_URI = "gitsm://git@gitlab.iqrf.org:2222/gateway/iqrf-gateway-uploader.git;protocol=ssh \
file://spi-reset-tr.patch \
SRC_URI = "gitsm://git@gitlab.iqrf.org:2222/gateway/iqrf-gateway-uploader.git;protocol=ssh;tag=v${PV};branch=release/v1.0.x;name=gw-uploader \
file://spi-reset-tr.patch \
"
S = "${WORKDIR}/git"
......
......@@ -5,9 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=534a83444ef586160601129ce929c6fd"
DEPENDS += "composer-native php-native openssl-native nodejs-native"
RDEPENDS_${PN} += "nginx php php-cgi php-cli php-fpm php-opcache php-phar python3-core"
SRCREV = "${AUTOREV}"
#SRCREV = "${AUTOREV}"
SRC_URI = "git://gitlab.iqrf.org/open-source/iqrf-gateway-webapp.git;protocol=https \
#SRC_URI = "git://gitlab.iqrf.org/open-source/iqrf-gateway-webapp.git;protocol=https
SRC_URI = "git://gitlab.iqrf.org/open-source/iqrf-gateway-webapp.git;protocol=https;tag=v${PV};branch=v2.3.x \
file://0001-app-config-Disable-sudo.patch \
file://0002-Makefile-fixes.patch \
file://0003-Features-for-Yocto-image.patch \
......
{
"applicationName": "IqrfGatewayDaemon",
"resourceDir": "",
"dataDir": "/usr/share/iqrf-gateway-daemon",
"cacheDir": "/var/cache/iqrf-gateway-daemon",
"userDir": "",
"configurationDir": "/etc/iqrf-gateway-daemon",
"deploymentDir": "/usr/lib/iqrf-gateway-daemon",
"components": [
{
"name": "shape::TraceFormatService",
"libraryPath": "",
"libraryName": "TraceFormatService",
"enabled": true,
"startlevel": -4
},
{
"name": "shape::TraceFileService",
"libraryPath": "",
"libraryName": "TraceFileService",
"enabled": true,
"startlevel": -3
},
{
"name": "iqrf::SyslogLogger",
"libraryPath": "",
"libraryName": "SyslogLogger",
"enabled": true,
"startlevel": -3
},
{
"name": "shape::ConfigurationService",
"libraryPath": "",
"libraryName": "",
"enabled": true,
"startlevel": -2
},
{
"name": "shape::LauncherService",
"libraryPath": "",
"libraryName": "",
"enabled": true,
"startlevel": -2
},
{
"name": "shape::WebsocketCppService",
"libraryPath": "",
"libraryName": "WebsocketCppService",
"enabled": true,
"startlevel": 0
},
{
"name": "shape::MqttService",
"libraryPath": "",
"libraryName": "MqttService",
"enabled": false,
"startlevel": 0
},
{
"name": "shape::CurlRestApiService",
"libraryPath": "",
"libraryName": "CurlRestApiService",
"enabled": true,
"startlevel": -1
},
{
"name": "iqrf::Scheduler",
"libraryPath": "",
"libraryName": "Scheduler",
"enabled": true,
"startlevel": 1
},
{
"name": "iqrf::IqrfCdc",
"libraryPath": "",
"libraryName": "IqrfCdc",
"enabled": false,
"startlevel": 0
},
{
"name": "iqrf::IqrfSpi",
"libraryPath": "",
"libraryName": "IqrfSpi",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::IqrfUart",
"libraryPath": "",
"libraryName": "IqrfUart",
"enabled": false,
"startlevel": 0
},
{
"name": "iqrf::IqrfDpa",
"libraryPath": "",
"libraryName": "IqrfDpa",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::IqrfInfo",
"libraryPath": "",
"libraryName": "IqrfInfo",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::IqrfBackup",
"libraryPath": "",
"libraryName": "IqrfBackup",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::IqrfRestore",
"libraryPath": "",
"libraryName": "IqrfRestore",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::MonitorService",
"libraryPath": "",
"libraryName": "MonitorService",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::LegacyApiSupport",
"libraryPath": "",
"libraryName": "LegacyApiSupport",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::MqMessaging",
"libraryPath": "",
"libraryName": "MqMessaging",
"enabled": true,
"startlevel": 10
},
{
"name": "iqrf::MqttMessaging",
"libraryPath": "",
"libraryName": "MqttMessaging",
"enabled": true,
"startlevel": 10
},
{
"name": "iqrf::BufferedMqttMessaging",
"libraryPath": "",
"libraryName": "BufferedMqttMessaging",
"enabled": false,
"startlevel": 10
},
{
"name": "iqrf::WebsocketMessaging",
"libraryPath": "",
"libraryName": "WebsocketMessaging",
"enabled": true,
"startlevel": 10
},
{
"name": "iqrf::UdpMessaging",
"libraryPath": "",
"libraryName": "UdpMessaging",
"enabled": true,
"startlevel": 10
},
{
"name": "iqrf::IdeCounterpart",
"libraryPath": "",
"libraryName": "IdeCounterpart",
"enabled": true,
"startlevel": 0
},
{
"name": "iqrf::JsonSplitter",
"libraryPath": "",
"libraryName": "JsonSplitter",
"enabled": true,
"startlevel": 1
},
{
"name": "iqrf::SchedulerMessaging",
"libraryPath": "",
"libraryName": "SchedulerMessaging",
"enabled": true,
"startlevel": 10
},
{
"name": "iqrf::JsonDpaApiRaw",
"libraryPath": "",
"libraryName": "JsonDpaApiRaw",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsonMngApi",
"libraryPath": "",
"libraryName": "JsonMngApi",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsonMngMetaDataApi",
"libraryPath": "",
"libraryName": "JsonMngMetaDataApi",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsonIqrfInfoApi",
"libraryPath": "",
"libraryName": "JsonIqrfInfoApi",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsonCfgApi",
"libraryPath": "",
"libraryName": "JsonCfgApi",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsCache",
"libraryPath": "",
"libraryName": "JsCache",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsRenderDuktape",
"libraryPath": "",
"libraryName": "JsRenderDuktape",
"enabled": true,
"startlevel": 2
},
{
"name": "iqrf::JsonDpaApiIqrfStandard",
"libraryPath": "",
"libraryName": "JsonDpaApiIqrfStandard",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::JsonDpaApiIqrfStdExt",
"libraryPath": "",
"libraryName": "JsonDpaApiIqrfStdExt",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::NativeUploadService",
"libraryPath": "",
"libraryName": "NativeUploadService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::WriteTrConfService",
"libraryPath": "",
"libraryName": "WriteTrConfService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::ReadTrConfService",
"libraryPath": "",
"libraryName": "ReadTrConfService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::SmartConnectService",
"libraryPath": "",
"libraryName": "SmartConnectService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::BondNodeLocalService",
"libraryPath": "",
"libraryName": "BondNodeLocalService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::EnumerateDeviceService",
"libraryPath": "",
"libraryName": "EnumerateDeviceService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::RemoveBondService",
"libraryPath": "",
"libraryName": "RemoveBondService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::AutonetworkService",
"libraryPath": "",
"libraryName": "AutonetworkService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::BackupService",
"libraryPath": "",
"libraryName": "BackupService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::RestoreService",
"libraryPath": "",
"libraryName": "RestoreService",
"enabled": true,
"startlevel": 3
},
{
"name": "iqrf::OtaUploadService",
"libraryPath": "",
"libraryName": "OtaUploadService",
"enabled": true,
"startlevel": 3
}
]
}
{
"component": "iqrf::IdeCounterpart",
"instance": "IdeCounterpart",
"gwIdentModeByte": 34,
"gwIdentName": "IQD-GW-02A",
"gwIdentIpStack": "N/A",
"gwIdentNetBios": "iqube",
"gwIdentPublicIp": "N/A",
"RequiredInterfaces": [
{
"name": "iqrf::IMessagingService",
"target": {
"instance": "UdpMessaging"
}
}
]
}
{
"component": "iqrf::IqrfSpi",
"instance": "iqrf::IqrfSpi-/dev/spidev0.0",
"IqrfInterface": "/dev/spidev0.0",
"powerEnableGpioPin": 23,
"busEnableGpioPin": -1,
"pgmSwitchGpioPin": -1,
"spiReset": true
}
{
"component": "iqrf::JsCache",
"instance": "JsCache",
"urlRepo": "https://repository.iqrfalliance.org/api",
"checkPeriodInMinutes": 0
}
{
"component": "iqrf::MqttMessaging",
"instance": "MqttMessaging",
"BrokerAddr": "tcp://localhost:1883",
"ClientId": "iqdgw02-",
"Persistence": 1,
"Qos": 1,
"TopicRequest": "gateway/iqdgw02-/iqrf/requests",
"TopicResponse": "gateway/iqdgw02-/iqrf/responses",
"User": "",
"Password": "",
"EnabledSSL": false,
"KeepAliveInterval": 20,
"ConnectTimeout": 5,
"MinReconnect": 1,
"MaxReconnect": 64,
"TrustStore": "server-ca.crt",
"KeyStore": "client.pem",
"PrivateKey": "client-privatekey.pem",
"PrivateKeyPassword": "",
"EnabledCipherSuites": "",
"EnableServerCertAuth": true,
"acceptAsyncMsg": true
}
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://config.json \
file://iqrf__IdeCounterpart.json \
file://iqrf__IqrfSpi.json \
file://iqrf__JsCache.json \
file://iqrf__MqttMessaging.json \
"
do_install_append() {
install -m 644 ${WORKDIR}/config.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqrf__IdeCounterpart.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqrf__IqrfSpi.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqrf__JsCache.json ${D}${sysconfdir}/iqrf-gateway-daemon
install -m 644 ${WORKDIR}/iqrf__MqttMessaging.json ${D}${sysconfdir}/iqrf-gateway-daemon
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment