Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Diagnostic Log and Trace" |
| 2 | DESCRIPTION = "This component provides a standardised log and trace interface, \ |
| 3 | based on the standardised protocol specified in the AUTOSAR standard 4.0 DLT. \ |
| 4 | This component can be used by GENIVI components and other applications as \ |
| 5 | logging 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" |
| 10 | HOMEPAGE = "https://www.genivi.org/" |
| 11 | SECTION = "console/utils" |
| 12 | LICENSE = "MPLv2" |
| 13 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea" |
| 14 | |
| 15 | DEPENDS = "zlib gzip-native" |
| 16 | |
| 17 | SRC_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 Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | " |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 21 | SRCREV = "22715aeceaa81ace2c832312529bde3a42d0814f" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | |
| 23 | S = "${WORKDIR}/git" |
| 24 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 25 | PACKAGECONFIG ?= "${@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 Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | # General options |
| 30 | PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd" |
| 31 | |
| 32 | # Linux options |
| 33 | PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd" |
| 34 | PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd" |
| 35 | PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd" |
| 36 | PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib" |
| 37 | PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF" |
| 38 | |
| 39 | # Command line options |
| 40 | PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF" |
| 41 | PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd" |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 42 | PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd" |
| 44 | |
| 45 | inherit autotools gettext cmake systemd |
| 46 | |
| 47 | EXTRA_OECMAKE += "-DSYSTEMD_UNITDIR=${systemd_system_unitdir}" |
| 48 | |
| 49 | PACKAGES += "${PN}-systemd" |
| 50 | SYSTEMD_PACKAGES = "${PN} ${PN}-systemd" |
| 51 | SYSTEMD_SERVICE_${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \ |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 52 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \ |
| 53 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 54 | SYSTEMD_AUTO_ENABLE_${PN} = "enable" |
| 55 | SYSTEMD_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 | " |
| 60 | SYSTEMD_AUTO_ENABLE_${PN}-systemd = "disable" |
| 61 | |
| 62 | FILES_${PN}-doc += "${datadir}/dlt-filetransfer" |
| 63 | |
| 64 | do_install_append() { |
| 65 | rm -f ${D}${bindir}/dlt-test-* |
| 66 | } |