Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes-devtools/python/python3-labgrid.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RDEPENDS:${PN} = " \
SRC_URI = " \
file://configuration.yaml \
file://labgrid-exporter.service \
file://labgrid-coordinator.service \
file://environment \
"

Expand All @@ -40,13 +41,15 @@ DEPENDS += "python3-pytest-runner-native"
inherit python_setuptools_build_meta systemd

SYSTEMD_SERVICE:${PN} = "labgrid-exporter.service"
SYSTEMD_SERVICE:${PN} = "labgrid-coordinator.service"

do_install:append() {
install -d ${D}${sysconfdir}/labgrid
install -m 0644 ${UNPACKDIR}/configuration.yaml ${D}${sysconfdir}/labgrid
install -m 0644 ${UNPACKDIR}/environment ${D}${sysconfdir}/labgrid
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/labgrid-exporter.service ${D}${systemd_system_unitdir}/
install -m 0644 ${UNPACKDIR}/labgrid-coordinator.service ${D}${systemd_system_unitdir}/
}

FILES:${PN} += "${sysconfdir} ${systemd_system_unitdir}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Labgrid Coordinator
After=network.target

[Service]
Environment="PYTHONUNBUFFERED=1"
ExecStart=/usr/bin/labgrid-coordinator
Restart=on-failure
DynamicUser=yes
StateDirectory=labgrid-coordinator
# Set WorkingDirectory to StateDirectory, this works in DynamicUser mode since symlinks are created
WorkingDirectory=%S/labgrid-coordinator

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
DESCRIPTION = "Control software for usb-sd-mux that switches a SD-Card between a Device Under Test (DUT) and a host PC."
HOMEPAGE = "https://github.com/linux-automation/usbsdmux"
LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
LIC_FILES_CHKSUM = "\
file://LICENSES/CC0-1.0.txt;md5=65d3616852dbf7b1a6d4b53b00626032 \
file://LICENSES/LGPL-2.1-or-later.txt;md5=4bf661c1e3793e55c8d1051bc5e0ae21 \
"

SRC_URI = " \
git://github.com/linux-automation/usbsdmux.git;protocol=https;branch=master \
"

SRCREV = "89e93df939a19bab0fa980e914ed39f33afa2785"
SRCREV = "dc8ea0ea05cd1cf02902fbfebf79061389a69097"

S = "${WORKDIR}/git"

DEPENDS += "python3-setuptools-scm-native"

inherit setuptools3
inherit python_setuptools_build_meta

do_install:append() {
install -D -m0644 ${S}/contrib/udev/99-usbsdmux.rules ${D}${sysconfdir}/udev/rules.d/99-usbsdmux.rules
Expand Down