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 | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 13 | SRC_URI += "git://github.com/openbmc/openpower-proc-control;branch=master;protocol=https" |
Andrew Geissler | 63f9ff4 | 2022-12-09 07:40:15 -0600 | [diff] [blame] | 14 | SRCREV = "0f27ee37b567411784a5b49f9046f9a855400125" |
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 | bbc6b9d | 2021-06-10 15:26:49 -0500 | [diff] [blame] | 22 | EXTRA_OEMESON += "-Dtests=disabled" |
| 23 | |
Andrew Jeffery | 20973e0 | 2019-08-07 10:38:11 +0930 | [diff] [blame] | 24 | # For libpdbg, provided by the pdbg package |
| 25 | DEPENDS += "pdbg" |
| 26 | |
Andrew Geissler | 07f6ad0 | 2022-05-23 15:53:39 -0400 | [diff] [blame] | 27 | PACKAGECONFIG ??= "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal op-fsi', d)}" |
| 28 | PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled -Dp9=enabled, ipl pdata" |
| 29 | PACKAGECONFIG[op-fsi] = "-Dopenfsi=enabled, -Dopenfsi=disabled" |
| 30 | |
| 31 | # By default all openpower systems support op-fsi |
| 32 | PACKAGECONFIG = " op-fsi" |
| 33 | |
Andrew Geissler | 643013c | 2018-11-20 03:20:12 +0000 | [diff] [blame] | 34 | TEMPLATE = "pcie-poweroff@.service" |
| 35 | INSTANCE_FORMAT = "pcie-poweroff@{}.service" |
| 36 | INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}" |
| 37 | SYSTEMD_PACKAGES = "${PN}" |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 38 | SYSTEMD_SERVICE:${PN} = "${TEMPLATE} ${INSTANCES}" |
Lakshminarayana R. Kammath | 4378a3f | 2019-06-11 12:37:25 -0500 | [diff] [blame] | 39 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 40 | SYSTEMD_SERVICE:${PN} += " \ |
Patrick Williams | 8c561ee | 2021-10-22 14:20:12 -0500 | [diff] [blame] | 41 | op-cfam-reset.service \ |
| 42 | op-continue-mpreboot@.service \ |
| 43 | op-enter-mpreboot@.service \ |
| 44 | op-stop-instructions@.service \ |
| 45 | xyz.openbmc_project.Control.Host.NMI.service \ |
| 46 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-reset-host-check@.service', '', d)} \ |
| 47 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-reset-host-clear.service', '', d)} \ |
| 48 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-export-devtree@.service', '', d)} \ |
| 49 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-import-devtree@.service', '', d)} \ |
| 50 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-reinit-devtree.service', '', d)} \ |
| 51 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'proc-pre-poweroff@.service', '', d)} \ |
| 52 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'set-spi-mux.service', '', d)} \ |
Ramesh Iyyar | d0aedb9 | 2022-02-24 03:35:40 -0600 | [diff] [blame] | 53 | ${@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] | 54 | ${@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] | 55 | ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-clock-data-logger@.service', '', d)} \ |
Patrick Williams | 8c561ee | 2021-10-22 14:20:12 -0500 | [diff] [blame] | 56 | " |