Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC Post Code Daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC Post Code Daemon" |
Patrick Venture | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 3 | HOMEPAGE = "http://github.com/openbmc/phosphor-host-postd" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 4 | PR = "r1" |
Patrick Venture | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 5 | PV = "0.1+git${SRCPV}" |
| 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 8 | |
Kun Yi | 556e23b | 2020-05-02 22:13:53 -0700 | [diff] [blame] | 9 | inherit meson |
| 10 | inherit pkgconfig |
Patrick Venture | 20b4af6 | 2018-10-23 11:57:36 -0700 | [diff] [blame] | 11 | inherit systemd |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 12 | |
Benjamin Fair | 14f1b6a | 2020-04-07 11:48:40 -0700 | [diff] [blame] | 13 | PACKAGECONFIG ?= "" |
Kun Yi | 556e23b | 2020-05-02 22:13:53 -0700 | [diff] [blame] | 14 | PACKAGECONFIG[7seg] = "-D7seg=enabled,-D7seg=disabled,,udev" |
Benjamin Fair | 14f1b6a | 2020-04-07 11:48:40 -0700 | [diff] [blame] | 15 | |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 16 | DEPENDS += "sdbusplus" |
Kun Yi | 41d3e4d | 2018-09-12 11:01:33 -0700 | [diff] [blame] | 17 | DEPENDS += "sdeventplus" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 18 | DEPENDS += "phosphor-dbus-interfaces" |
| 19 | DEPENDS += "systemd" |
Kumar Thangavel | 18fa383 | 2021-08-18 18:04:45 +0530 | [diff] [blame] | 20 | DEPENDS += "libgpiod" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 21 | |
Patrick Venture | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 22 | S = "${WORKDIR}/git" |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 23 | SRC_URI = "git://github.com/openbmc/phosphor-host-postd;branch=master;protocol=https" |
Andrew Geissler | e134f5f | 2022-06-16 17:30:12 -0500 | [diff] [blame] | 24 | SRCREV = "18119acc04b45556efda4b2ce6d964da6561d3ab" |
Patrick Venture | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 25 | |
Benjamin Fair | 89e86cd | 2018-06-29 13:00:14 -0700 | [diff] [blame] | 26 | SNOOP_DEVICE ?= "aspeed-lpc-snoop0" |
| 27 | POST_CODE_BYTES ?= "1" |
Kumar Thangavel | 18fa383 | 2021-08-18 18:04:45 +0530 | [diff] [blame] | 28 | 7SEG_GPIO ?= "0" |
Benjamin Fair | 89e86cd | 2018-06-29 13:00:14 -0700 | [diff] [blame] | 29 | |
| 30 | SERVICE_FILE = "lpcsnoop.service" |
Patrick Venture | 20b4af6 | 2018-10-23 11:57:36 -0700 | [diff] [blame] | 31 | SYSTEMD_PACKAGES = "${PN}" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 32 | SYSTEMD_SERVICE:${PN} += "${SERVICE_FILE}" |
Patrick Venture | 20b4af6 | 2018-10-23 11:57:36 -0700 | [diff] [blame] | 33 | |
Patrick Williams | ed104d4 | 2021-08-31 13:19:27 -0500 | [diff] [blame] | 34 | EXTRA_OEMESON:append = " \ |
| 35 | -Dsnoop-device=${SNOOP_DEVICE} \ |
| 36 | -Dpost-code-bytes=${POST_CODE_BYTES} \ |
Zev Weiss | 9aa9248 | 2022-04-05 17:40:10 -0700 | [diff] [blame] | 37 | -Dtests=disabled \ |
Patrick Williams | ed104d4 | 2021-08-31 13:19:27 -0500 | [diff] [blame] | 38 | " |
Benjamin Fair | 14f1b6a | 2020-04-07 11:48:40 -0700 | [diff] [blame] | 39 | |
| 40 | POSTCODE_SEVENSEG_DEVICE ?= "seven_seg_disp_val" |
| 41 | SERVICE_FILE_7SEG = " \ |
| 42 | postcode-7seg@.service \ |
| 43 | postcode-7seg@${POSTCODE_SEVENSEG_DEVICE}.service \ |
| 44 | " |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 45 | SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', '7seg', '${SERVICE_FILE_7SEG}', '', d)}" |