Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [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" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | LICENSE = "MPL-2.0" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 13 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea" |
| 14 | |
| 15 | DEPENDS = "zlib gzip-native json-c" |
| 16 | |
| 17 | SRC_URI = "git://github.com/GENIVI/${BPN}.git;protocol=https;branch=master \ |
| 18 | file://0002-Don-t-execute-processes-as-a-specific-user.patch \ |
| 19 | file://0004-Modify-systemd-config-directory.patch \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 20 | file://0001-cmake-Link-with-libatomic-on-rv32-rv64.patch \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 21 | file://0001-dlt-system-Fix-buffer-overflow-detection-on-32bit-ta.patch \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 22 | " |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 23 | SRCREV = "6a3bd901d825c7206797e36ea98e10a218f5aad2" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 24 | |
| 25 | PV .= "+2.18.9git${SRCPV}" |
| 26 | |
| 27 | S = "${WORKDIR}/git" |
| 28 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 29 | LDFLAGS:append:riscv64 = " -latomic" |
| 30 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 31 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal dlt-examples dlt-adaptor dlt-adaptor-udp dlt-console ', '', d)} \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 32 | udp-connection dlt-system dlt-filetransfer " |
| 33 | # dlt-dbus |
| 34 | |
| 35 | # General options |
| 36 | PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd" |
| 37 | |
| 38 | # Linux options |
| 39 | PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF -DWITH_DLT_SYSTEM=OFF,systemd" |
| 40 | PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd" |
| 41 | PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd" |
| 42 | PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib" |
| 43 | PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF" |
| 44 | |
| 45 | # Command line options |
| 46 | PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF" |
| 47 | PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 48 | PACKAGECONFIG[dlt-adaptor-udp] = "-DWITH_DLT_ADAPTOR_UDP=ON,-DWITH_DLT_ADAPTOR_UDP=OFF,,dlt-daemon-systemd" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 49 | PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF" |
| 50 | PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd" |
| 51 | |
| 52 | inherit autotools gettext cmake pkgconfig systemd |
| 53 | |
| 54 | EXTRA_OECMAKE += "-DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir}" |
| 55 | |
| 56 | PACKAGES += "${PN}-systemd" |
| 57 | SYSTEMD_PACKAGES = "${PN} ${PN}-systemd" |
| 58 | SYSTEMD_SERVICE:${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \ |
| 59 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \ |
| 60 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}" |
| 61 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" |
| 62 | SYSTEMD_SERVICE:${PN}-systemd = " \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 63 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-adaptor-udp', 'dlt-adaptor-udp.service', '', d)} \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 64 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples', 'dlt-example-user.service', '', d)} \ |
| 65 | ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples dlt-console', 'dlt-receive.service', '', d)} \ |
| 66 | " |
| 67 | SYSTEMD_AUTO_ENABLE:${PN}-systemd = "disable" |
| 68 | |
| 69 | FILES:${PN}-doc += "${datadir}/dlt-filetransfer" |
| 70 | |
| 71 | do_install:append() { |
| 72 | rm -f ${D}${bindir}/dlt-test-* |
| 73 | } |