blob: b3cfb4709f7a7d685be70826e0fd2416f182b2eb [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "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. \
4This component can be used by GENIVI components and other applications as \
5logging 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"
10HOMEPAGE = "https://www.genivi.org/"
11SECTION = "console/utils"
12LICENSE = "MPLv2"
13LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea"
14
15DEPENDS = "zlib gzip-native"
16
17SRC_URI = "git://github.com/GENIVI/${BPN}.git;protocol=https \
18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020"
Andrew Geisslereef63862021-01-29 15:58:13 -060021SRCREV = "22715aeceaa81ace2c832312529bde3a42d0814f"
Andrew Geissler82c905d2020-04-13 13:39:40 -050022
23S = "${WORKDIR}/git"
24
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050025PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal dlt-examples dlt-adaptor dlt-console ', '', d)} \
26 udp-connection dlt-system dlt-filetransfer "
27# dlt-dbus
28
Andrew Geissler82c905d2020-04-13 13:39:40 -050029# General options
30PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd"
31
32# Linux options
33PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
34PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd"
35PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd"
36PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib"
37PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF"
38
39# Command line options
40PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF"
41PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050042PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF"
Andrew Geissler82c905d2020-04-13 13:39:40 -050043PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd"
44
45inherit autotools gettext cmake systemd
46
47EXTRA_OECMAKE += "-DSYSTEMD_UNITDIR=${systemd_system_unitdir}"
48
49PACKAGES += "${PN}-systemd"
50SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
51SYSTEMD_SERVICE_${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050052 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \
53 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050054SYSTEMD_AUTO_ENABLE_${PN} = "enable"
55SYSTEMD_SERVICE_${PN}-systemd = " \
56 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-adaptor', 'dlt-adaptor-udp.service', '', d)} \
57 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples', 'dlt-example-user.service', '', d)} \
58 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples dlt-console', 'dlt-receive.service', '', d)} \
59"
60SYSTEMD_AUTO_ENABLE_${PN}-systemd = "disable"
61
62FILES_${PN}-doc += "${datadir}/dlt-filetransfer"
63
64do_install_append() {
65 rm -f ${D}${bindir}/dlt-test-*
66}