Skip to content

Commit

Permalink
Merge pull request #61 from hnez/scarthgap-grpc
Browse files Browse the repository at this point in the history
scarthgap: update labgrid master version and add support for gRPC
  • Loading branch information
Emantor authored Oct 22, 2024
2 parents c717323 + 25ba5ef commit e8bc593
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 2 deletions.
16 changes: 16 additions & 0 deletions recipes-devtools/python/python3-grpcio-channelz_1.62.2.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
DESCRIPTION = "Google gRPC channelz"
HOMEPAGE = "http://www.grpc.io/"
SECTION = "devel/python"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"

inherit pypi setuptools3

DEPENDS += "python3-grpcio"

SRC_URI[sha256sum] = "6e4ac2c43d76b245c5f66d98f523db08786b186128a655ee6f20a30a7e68e4f9"

RDEPENDS:${PN} = "python3-grpcio"

BBCLASSEXTEND = "native nativesdk"
16 changes: 16 additions & 0 deletions recipes-devtools/python/python3-grpcio-reflection_1.62.2.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
DESCRIPTION = "Google gRPC reflection"
HOMEPAGE = "http://www.grpc.io/"
SECTION = "devel/python"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"

inherit pypi setuptools3

DEPENDS += "python3-grpcio"

SRC_URI[sha256sum] = "2dd44806d68d0006636529bda573012b19a42281478c2d051cdaaebb91e2516c"

RDEPENDS:${PN} = "python3-grpcio"

BBCLASSEXTEND = "native nativesdk"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Labgrid Exporter
After=network-online.target
Wants=network-online.target

[Service]
Environment="PYTHONUNBUFFERED=1"
EnvironmentFile=/etc/labgrid/environment
ExecStart=/usr/bin/labgrid-exporter --coordinator ${LABGRID_COORDINATOR_IP}:${LABGRID_COORDINATOR_PORT} /etc/labgrid/configuration.yaml
Restart=on-failure
RestartForceExitStatus=100
RestartSec=30

[Install]
WantedBy=multi-user.target
11 changes: 9 additions & 2 deletions recipes-devtools/python/python3-labgrid_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ require python3-labgrid.inc
SRC_URI += "git://github.com/labgrid-project/labgrid.git;protocol=https;branch=${SRCBRANCH}"

SRCBRANCH = "master"
SRCREV = "91c7e9cb044e1227f657a0db983d48c857c21b16"
SRCREV = "5f0ae27f62692cd703052a3c649f19d2f9abed0c"

PV = "23+git"
PV = "24.0+git"

RDEPENDS:${PN} += " \
python3-grpcio \
python3-grpcio-reflection \
python3-grpcio-channelz \
"
RDEPENDS:${PN}:remove = "python3-autobahn"

LABGRID_USE_DEVEL_VERSION[doc] = "Global switch to enable labgrid development (git) version"
LABGRID_USE_DEVEL_VERSION ??= "-1"
Expand Down

0 comments on commit e8bc593

Please sign in to comment.