blob: 9a7b38b4955b0323322bff19fb0ae87cc64a5e5a [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001SUMMARY = "Diagnostic Log and Trace"
2DESCRIPTION = "This component provides a standardised log and trace interface, \
3based on the standardised protocol specified in the AUTOSAR standard 4.0 DLT. \
Patrick Williamsb542dec2023-06-09 01:26:37 -05004This component can be used by COVESA components and other applications as \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005logging facility providing: \
6- the DLT shared library \
7- the DLT daemon, including startup scripts \
8- the DLT daemon adaptors- the DLT client console utilities \
9- the DLT test applications"
Patrick Williamsb542dec2023-06-09 01:26:37 -050010HOMEPAGE = "https://www.covesa.global/"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000011SECTION = "console/utils"
Andrew Geissler9aee5002022-03-30 16:27:02 +000012LICENSE = "MPL-2.0"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000013LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea"
14
15DEPENDS = "zlib gzip-native json-c"
16
Patrick Williamsb542dec2023-06-09 01:26:37 -050017SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000018 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \
Andrew Geissler028142b2023-05-05 11:29:21 -050020 file://481.patch \
21 file://482.patch \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000022 "
Andrew Geissler028142b2023-05-05 11:29:21 -050023SRCREV = "9a2312d3512a27620d41b9a325338b6e7b3d42de"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000024
25S = "${WORKDIR}/git"
26
Andrew Geissler028142b2023-05-05 11:29:21 -050027PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal dlt-examples dlt-adaptor dlt-adaptor-stdin dlt-adaptor-udp dlt-console ', '', d)} \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000028 udp-connection dlt-system dlt-filetransfer "
29# dlt-dbus
30
31# General options
32PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd"
33
34# Linux options
35PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF -DWITH_DLT_SYSTEM=OFF,systemd"
36PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd"
37PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd"
38PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib"
39PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF"
40
41# Command line options
42PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF"
43PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd"
Andrew Geissler028142b2023-05-05 11:29:21 -050044PACKAGECONFIG[dlt-adaptor-stdin] = "-DWITH_DLT_ADAPTOR_STDIN=ON,-DWITH_DLT_ADAPTOR_STDIN=OFF,,dlt-daemon-systemd"
Andrew Geissler615f2f12022-07-15 14:00:58 -050045PACKAGECONFIG[dlt-adaptor-udp] = "-DWITH_DLT_ADAPTOR_UDP=ON,-DWITH_DLT_ADAPTOR_UDP=OFF,,dlt-daemon-systemd"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000046PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF"
47PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd"
48
49inherit autotools gettext cmake pkgconfig systemd
50
51EXTRA_OECMAKE += "-DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir}"
52
53PACKAGES += "${PN}-systemd"
54SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
55SYSTEMD_SERVICE:${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \
56 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \
57 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}"
58SYSTEMD_AUTO_ENABLE:${PN} = "enable"
59SYSTEMD_SERVICE:${PN}-systemd = " \
Andrew Geissler615f2f12022-07-15 14:00:58 -050060 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-adaptor-udp', 'dlt-adaptor-udp.service', '', d)} \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000061 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples', 'dlt-example-user.service', '', d)} \
62 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples dlt-console', 'dlt-receive.service', '', d)} \
63"
64SYSTEMD_AUTO_ENABLE:${PN}-systemd = "disable"
65
66FILES:${PN}-doc += "${datadir}/dlt-filetransfer"
67
68do_install:append() {
69 rm -f ${D}${bindir}/dlt-test-*
70}