1 SUMMARY = "KUKSA.val databroker, the KUKSA Vehicle Abstraction Layer"
2 #DESCRIPTION = "KUKSA.val provides a COVESA VSS data model describing data in a vehicle."
3 HOMEPAGE = "https://github.com/eclipse/kuksa.val"
4 BUGTRACKER = "https://github.com/eclipse/kuksa.val/issues"
7 LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9 \
10 DEPENDS = "protobuf-native grpc-native"
14 require ${BPN}-crates.inc
16 SRC_URI += "file://0001-Force-older-clap-version-to-build-with-Rust-1.68.patch \
17 file://0002-Remove-protobuf-src-usage.patch \
18 file://kuksa-databroker.service \
23 inherit cargo systemd useradd
25 # Enable optional VISS support for potential use by e.g. the web apps
26 CARGO_BUILD_FLAGS += "--features viss"
28 SYSTEMD_SERVICE:${PN} = "${BPN}.service"
30 USERADD_PACKAGES = "${PN}"
31 USERADDEXTENSION = "useradd-staticids"
32 GROUPADD_PARAM:${PN} = "-g 900 kuksa ;"
33 USERADD_PARAM:${PN} = "--system -g 900 -u 900 -o -d / --shell /bin/nologin kuksa ;"
36 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
37 install -d ${D}${systemd_system_unitdir}
38 install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
41 # Install gRPC API protobuf files
42 install -d ${D}${includedir}
43 cp -dr ${S}/proto/kuksa ${D}${includedir}
44 cp -dr ${S}/kuksa_databroker/proto/sdv ${D}${includedir}
47 PACKAGE_BEFORE_PN += "${PN}-cli"
49 FILES:${PN} += "${systemd_system_unitdir} ${datadir}"
51 FILES:${PN}-cli = "${bindir}/databroker-cli"
53 # The upstream Cargo.toml builds optimized and stripped binaries, for
54 # now disable the QA check as opposed to tweaking the configuration.
55 INSANE_SKIP:${PN} = "already-stripped"
56 INSANE_SKIP:${PN}-cli = "already-stripped"