Brad Bishop | 37653df | 2017-05-12 13:02:56 -0400 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC event and error logging" |
| 2 | DESCRIPTION = "An error and event log daemon application, and \ |
| 3 | supporting tools for OpenBMC." |
Adriana Kobylak | b02da7b | 2016-10-19 14:58:25 -0500 | [diff] [blame] | 4 | HOMEPAGE = "https://github.com/openbmc/phosphor-logging" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Adriana Kobylak | b02da7b | 2016-10-19 14:58:25 -0500 | [diff] [blame] | 7 | DEPENDS += "systemd" |
Matt Spinler | 017f942 | 2020-03-13 15:57:29 -0500 | [diff] [blame] | 8 | DEPENDS += "${PYTHON_PN}-mako-native" |
| 9 | DEPENDS += "${PYTHON_PN}-pyyaml-native" |
| 10 | DEPENDS += "${PYTHON_PN}-native" |
Patrick Williams | 4b32c9a | 2020-03-31 16:43:15 -0500 | [diff] [blame] | 11 | DEPENDS += "${PYTHON_PN}-sdbus++-native" |
| 12 | DEPENDS += "sdbusplus" |
Patrick Williams | add9383 | 2020-06-10 06:52:05 -0500 | [diff] [blame] | 13 | DEPENDS += "phosphor-dbus-interfaces" |
Deepak Kodihalli | 1f09d4a | 2017-03-16 06:32:12 -0500 | [diff] [blame] | 14 | DEPENDS += "virtual/phosphor-logging-callouts" |
Brad Bishop | 17c08bf | 2018-10-18 17:07:53 -0400 | [diff] [blame] | 15 | DEPENDS += "libcereal" |
Matt Spinler | f319ea6 | 2019-07-23 16:04:04 -0500 | [diff] [blame] | 16 | DEPENDS += "sdeventplus" |
Patrick Williams | 60c4907 | 2021-04-16 14:14:26 -0500 | [diff] [blame] | 17 | DEPENDS += "packagegroup-obmc-yaml-providers" |
Andrew Geissler | 5803cd7 | 2023-01-24 16:20:19 -0600 | [diff] [blame] | 18 | DEPENDS += "dbus" |
Andrew Geissler | 2c7609d | 2023-07-21 09:00:19 -0500 | [diff] [blame] | 19 | SRCREV = "1cb59f70f1fa1caa10c700ba954e9b5fd85afed5" |
Patrick Williams | 2d52a38 | 2021-04-30 10:27:59 -0500 | [diff] [blame] | 20 | PACKAGECONFIG ??= "" |
Matt Spinler | f851092 | 2019-08-08 13:21:24 -0500 | [diff] [blame] | 21 | PACKAGECONFIG[openpower-pels] = " \ |
Patrick Williams | 2d52a38 | 2021-04-30 10:27:59 -0500 | [diff] [blame] | 22 | -Dopenpower-pel-extension=enabled, \ |
| 23 | -Dopenpower-pel-extension=disabled, \ |
Manojkiran Eda | c593475 | 2022-09-27 13:59:35 -0500 | [diff] [blame] | 24 | nlohmann-json cli11 libpldm python3, \ |
Harisuddin Mohamed Isa | cdfe38f | 2020-06-05 16:47:37 +0800 | [diff] [blame] | 25 | python3, \ |
Matt Spinler | f851092 | 2019-08-08 13:21:24 -0500 | [diff] [blame] | 26 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 27 | PV = "1.0+git${SRCPV}" |
| 28 | PR = "r1" |
| 29 | |
Patrick Williams | bccaff3 | 2023-04-14 11:24:47 -0500 | [diff] [blame] | 30 | SRC_URI = "git://github.com/openbmc/phosphor-logging;branch=master;protocol=https" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 31 | |
| 32 | SYSTEMD_PACKAGES = "${LOGGING_PACKAGES}" |
| 33 | S = "${WORKDIR}/git" |
| 34 | |
| 35 | inherit pkgconfig meson |
| 36 | inherit python3native |
| 37 | inherit obmc-phosphor-dbus-service |
| 38 | inherit phosphor-logging |
| 39 | inherit phosphor-dbus-yaml |
Matt Spinler | f851092 | 2019-08-08 13:21:24 -0500 | [diff] [blame] | 40 | |
Tim Lee | 5506686 | 2023-07-24 10:58:00 +0800 | [diff] [blame^] | 41 | def get_info_cap(d): |
| 42 | flash_size = int(d.getVar('FLASH_SIZE')) |
| 43 | if flash_size <= 32768: |
| 44 | return "10" |
| 45 | elif flash_size <= 65536: |
| 46 | return "128" |
| 47 | else: |
| 48 | return "256" |
| 49 | |
| 50 | ERR_INFO_CAP ??= "${@get_info_cap(d)}" |
| 51 | ERR_INFO_CAP:df-phosphor-mmc ?= "256" |
| 52 | |
Patrick Williams | 2d52a38 | 2021-04-30 10:27:59 -0500 | [diff] [blame] | 53 | EXTRA_OEMESON = " \ |
William A. Kennington III | efe03c3 | 2021-05-29 14:55:41 -0700 | [diff] [blame] | 54 | -Dtests=disabled \ |
Patrick Williams | 2d52a38 | 2021-04-30 10:27:59 -0500 | [diff] [blame] | 55 | -Dyamldir=${STAGING_DIR_TARGET}${yaml_dir} \ |
| 56 | -Dcallout_yaml=${STAGING_DIR_NATIVE}${callouts_datadir}/callouts.yaml \ |
Tim Lee | 5506686 | 2023-07-24 10:58:00 +0800 | [diff] [blame^] | 57 | -Derror_info_cap=${ERR_INFO_CAP} \ |
Deepak Kodihalli | 1f09d4a | 2017-03-16 06:32:12 -0500 | [diff] [blame] | 58 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 59 | |
| 60 | FILES:${PN}-test = "${bindir}/*-test" |
| 61 | FILES:${PN}-base += " \ |
| 62 | ${datadir}/dbus-1 \ |
| 63 | ${bindir}/phosphor-log-manager \ |
| 64 | ${libdir}/libphosphor_logging.so.* \ |
Andrew Geissler | 5803cd7 | 2023-01-24 16:20:19 -0600 | [diff] [blame] | 65 | ${datadir}/dbus-1/system-services/xyz.openbmc_project.Logging.service \ |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 66 | " |
| 67 | FILES:phosphor-rsyslog-config += " \ |
| 68 | ${bindir}/phosphor-rsyslog-conf \ |
| 69 | " |
| 70 | |
| 71 | ALLOW_EMPTY:${PN} = "1" |
| 72 | |
| 73 | USERADD_PACKAGES = "${PN}-base" |
| 74 | |
| 75 | PACKAGE_BEFORE_PN = "${PN}-test" |
| 76 | # Package configuration |
| 77 | LOGGING_PACKAGES = " \ |
| 78 | ${PN}-base \ |
| 79 | phosphor-rsyslog-config \ |
| 80 | " |
| 81 | PACKAGE_BEFORE_PN += "${LOGGING_PACKAGES}" |
| 82 | DBUS_PACKAGES = "${LOGGING_PACKAGES}" |
| 83 | GROUPADD_PARAM:${PN}-base = "-r phosphor-logging" |
| 84 | DBUS_SERVICE:${PN}-base += "xyz.openbmc_project.Logging.service" |
| 85 | DBUS_SERVICE:phosphor-rsyslog-config += "xyz.openbmc_project.Syslog.Config.service" |