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 | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 6 | DEPENDS += "sdbusplus" |
Kun Yi | 41d3e4d | 2018-09-12 11:01:33 -0700 | [diff] [blame] | 7 | DEPENDS += "sdeventplus" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 8 | DEPENDS += "phosphor-dbus-interfaces" |
| 9 | DEPENDS += "systemd" |
Kumar Thangavel | 18fa383 | 2021-08-18 18:04:45 +0530 | [diff] [blame] | 10 | DEPENDS += "libgpiod" |
Andrew Geissler | 92742a0 | 2022-12-09 16:20:32 -0600 | [diff] [blame] | 11 | SRCREV = "30751ec2595dc31441a29294a14c705cec9d0d5d" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 12 | PACKAGECONFIG ?= "" |
| 13 | PACKAGECONFIG[7seg] = "-D7seg=enabled,-D7seg=disabled,,udev" |
| 14 | PV = "0.1+git${SRCPV}" |
| 15 | PR = "r1" |
| 16 | |
| 17 | SRC_URI = "git://github.com/openbmc/phosphor-host-postd;branch=master;protocol=https" |
Patrick Venture | 7ebe026 | 2018-03-30 11:23:16 -0700 | [diff] [blame] | 18 | |
Patrick Venture | 6b91f73 | 2018-09-28 19:21:26 -0700 | [diff] [blame] | 19 | S = "${WORKDIR}/git" |
Benjamin Fair | 89e86cd | 2018-06-29 13:00:14 -0700 | [diff] [blame] | 20 | SNOOP_DEVICE ?= "aspeed-lpc-snoop0" |
Benjamin Fair | 89e86cd | 2018-06-29 13:00:14 -0700 | [diff] [blame] | 21 | SERVICE_FILE = "lpcsnoop.service" |
Patrick Venture | 20b4af6 | 2018-10-23 11:57:36 -0700 | [diff] [blame] | 22 | SYSTEMD_PACKAGES = "${PN}" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 23 | SYSTEMD_SERVICE:${PN} += "${SERVICE_FILE}" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 24 | SERVICE_FILE_7SEG = " \ |
| 25 | postcode-7seg@.service \ |
| 26 | postcode-7seg@${POSTCODE_SEVENSEG_DEVICE}.service \ |
| 27 | " |
| 28 | SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', '7seg', '${SERVICE_FILE_7SEG}', '', d)}" |
| 29 | |
| 30 | inherit meson |
| 31 | inherit pkgconfig |
| 32 | inherit systemd |
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 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 40 | POST_CODE_BYTES ?= "1" |
| 41 | 7SEG_GPIO ?= "0" |
Benjamin Fair | 14f1b6a | 2020-04-07 11:48:40 -0700 | [diff] [blame] | 42 | POSTCODE_SEVENSEG_DEVICE ?= "seven_seg_disp_val" |