Matt Spinler | aca1b15 | 2017-03-10 15:08:56 -0600 | [diff] [blame] | 1 | SUMMARY = "OpenPower procedure control" |
| 2 | DESCRIPTION = "Provides procedures that run against the host chipset" |
| 3 | PR = "r1" |
Patrick Venture | 8eb2361 | 2018-10-02 19:14:43 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Matt Spinler | 37619cc | 2017-10-04 13:07:06 -0500 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 7 | |
Matt Spinler | aca1b15 | 2017-03-10 15:08:56 -0600 | [diff] [blame] | 8 | S = "${WORKDIR}/git" |
| 9 | |
Andrew Geissler | bbc6b9d | 2021-06-10 15:26:49 -0500 | [diff] [blame] | 10 | inherit meson obmc-phosphor-utils pkgconfig |
Andrew Geissler | 643013c | 2018-11-20 03:20:12 +0000 | [diff] [blame] | 11 | inherit systemd |
Matt Spinler | aca1b15 | 2017-03-10 15:08:56 -0600 | [diff] [blame] | 12 | |
Patrick Williams | bccaff3 | 2023-04-14 11:24:47 -0500 | [diff] [blame] | 13 | SRC_URI = "git://github.com/openbmc/openpower-proc-control;branch=master;protocol=https" |
Andrew Geissler | b60323d | 2024-01-19 15:00:29 -0600 | [diff] [blame] | 14 | SRCREV = "969196c323cb9bac9281195191c5774184d1daad" |
Matt Spinler | 20c9cd0 | 2017-09-18 15:52:40 -0500 | [diff] [blame] | 15 | |
| 16 | DEPENDS += " \ |
Matt Spinler | 20c9cd0 | 2017-09-18 15:52:40 -0500 | [diff] [blame] | 17 | phosphor-logging \ |
| 18 | phosphor-dbus-interfaces \ |
Andrew Geissler | a77fbba | 2020-02-05 08:15:36 -0600 | [diff] [blame] | 19 | libgpiod \ |
Matt Spinler | 20c9cd0 | 2017-09-18 15:52:40 -0500 | [diff] [blame] | 20 | " |
Andrew Jeffery | 20973e0 | 2019-08-07 10:38:11 +0930 | [diff] [blame] | 21 | |
Andrew Geissler | b9b3a4a | 2023-05-12 14:10:34 -0500 | [diff] [blame] | 22 | RDEPENDS:${PN} += " op-proc-control-systemd-links" |
| 23 | |
Andrew Geissler | bbc6b9d | 2021-06-10 15:26:49 -0500 | [diff] [blame] | 24 | EXTRA_OEMESON += "-Dtests=disabled" |
| 25 | |
Andrew Jeffery | 20973e0 | 2019-08-07 10:38:11 +0930 | [diff] [blame] | 26 | # For libpdbg, provided by the pdbg package |
| 27 | DEPENDS += "pdbg" |
| 28 | |
Andrew Geissler | 07f6ad0 | 2022-05-23 15:53:39 -0400 | [diff] [blame] | 29 | PACKAGECONFIG ??= "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal op-fsi', d)}" |
| 30 | PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled -Dp9=enabled, ipl pdata" |
| 31 | PACKAGECONFIG[op-fsi] = "-Dopenfsi=enabled, -Dopenfsi=disabled" |
| 32 | |
| 33 | # By default all openpower systems support op-fsi |
| 34 | PACKAGECONFIG = " op-fsi" |
| 35 | |
Andrew Geissler | 643013c | 2018-11-20 03:20:12 +0000 | [diff] [blame] | 36 | TEMPLATE = "pcie-poweroff@.service" |
| 37 | INSTANCE_FORMAT = "pcie-poweroff@{}.service" |
| 38 | INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}" |
| 39 | SYSTEMD_PACKAGES = "${PN}" |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 40 | SYSTEMD_SERVICE:${PN} = "${TEMPLATE} ${INSTANCES}" |
Lakshminarayana R. Kammath | 4378a3f | 2019-06-11 12:37:25 -0500 | [diff] [blame] | 41 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 42 | SYSTEMD_SERVICE:${PN} += " \ |
Patrick Williams | 8c561ee | 2021-10-22 14:20:12 -0500 | [diff] [blame] | 43 | op-cfam-reset.service \ |
| 44 | op-continue-mpreboot@.service \ |
| 45 | op-enter-mpreboot@.service \ |
| 46 | op-stop-instructions@.service \ |
| 47 | xyz.openbmc_project.Control.Host.NMI.service \ |
| 48 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-reset-host-check@.service', '', d)} \ |
| 49 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-reset-host-clear.service', '', d)} \ |
| 50 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-export-devtree@.service', '', d)} \ |
| 51 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-import-devtree@.service', '', d)} \ |
| 52 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-reinit-devtree.service', '', d)} \ |
| 53 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'proc-pre-poweroff@.service', '', d)} \ |
| 54 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'set-spi-mux.service', '', d)} \ |
Ramesh Iyyar | d0aedb9 | 2022-02-24 03:35:40 -0600 | [diff] [blame] | 55 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-create-boottime-guard-indicator.service', '', d)} \ |
Andrew Geissler | f158d90 | 2022-04-08 16:24:35 -0500 | [diff] [blame] | 56 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-clear-sys-dump-active@.service', '', d)} \ |
Jayanth Othayoth | 633a9cc | 2022-09-12 06:23:45 -0500 | [diff] [blame] | 57 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-clock-data-logger@.service', '', d)} \ |
Patrick Williams | 8c561ee | 2021-10-22 14:20:12 -0500 | [diff] [blame] | 58 | " |