require ${BPN}-crates.inc
-SRC_URI += "file://kuksa-databroker.service"
+SRC_URI += "file://0001-Remove-protobuf-src-usage.patch \
+ file://kuksa-databroker.service \
+"
S = "${WORKDIR}/git"
-inherit cargo systemd useradd
+inherit cargo cargo-update-recipe-crates systemd useradd
+
+# Enable optional VISS support for potential use by e.g. the web apps
+CARGO_BUILD_FLAGS += "--features viss"
SYSTEMD_SERVICE:${PN} = "${BPN}.service"
do_install:append() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${systemd_system_unitdir}
- install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
+ install -m 0644 ${UNPACKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
fi
# Install gRPC API protobuf files
install -d ${D}${includedir}
+ cp -dr ${S}/proto/kuksa ${D}${includedir}
cp -dr ${S}/kuksa_databroker/proto/sdv ${D}${includedir}
}