blob: cc464e30e730b4a21aba6ed5f1661c53315cefdc [file] [log] [blame]
Matt Spinleraca1b152017-03-10 15:08:56 -06001SUMMARY = "OpenPower procedure control"
2DESCRIPTION = "Provides procedures that run against the host chipset"
3PR = "r1"
Patrick Venture8eb23612018-10-02 19:14:43 -07004PV = "1.0+git${SRCPV}"
Matt Spinler37619cc2017-10-04 13:07:06 -05005LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
7
Matt Spinleraca1b152017-03-10 15:08:56 -06008S = "${WORKDIR}/git"
9
Andrew Geisslerbbc6b9d2021-06-10 15:26:49 -050010inherit meson obmc-phosphor-utils pkgconfig
Andrew Geissler643013c2018-11-20 03:20:12 +000011inherit systemd
Matt Spinleraca1b152017-03-10 15:08:56 -060012
Matt Spinler37619cc2017-10-04 13:07:06 -050013SRC_URI += "git://github.com/openbmc/openpower-proc-control"
Andrew Geissler503da432021-09-10 15:30:21 +000014SRCREV = "ee56c5552623e3908a3323bcdd6181ba750126a2"
Matt Spinler20c9cd02017-09-18 15:52:40 -050015
16DEPENDS += " \
Matt Spinler20c9cd02017-09-18 15:52:40 -050017 phosphor-logging \
18 phosphor-dbus-interfaces \
Andrew Geisslera77fbba2020-02-05 08:15:36 -060019 libgpiod \
Matt Spinler20c9cd02017-09-18 15:52:40 -050020 "
Andrew Jeffery20973e02019-08-07 10:38:11 +093021
Andrew Geisslerbbc6b9d2021-06-10 15:26:49 -050022EXTRA_OEMESON += "-Dtests=disabled"
23
Andrew Jeffery20973e02019-08-07 10:38:11 +093024# For libpdbg, provided by the pdbg package
25DEPENDS += "pdbg"
26
Andrew Geissler643013c2018-11-20 03:20:12 +000027TEMPLATE = "pcie-poweroff@.service"
28INSTANCE_FORMAT = "pcie-poweroff@{}.service"
29INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}"
30SYSTEMD_PACKAGES = "${PN}"
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000031SYSTEMD_SERVICE:${PN} = "${TEMPLATE} ${INSTANCES}"
Lakshminarayana R. Kammath4378a3f2019-06-11 12:37:25 -050032
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000033SYSTEMD_SERVICE:${PN} += " \
Lakshminarayana R. Kammath4378a3f2019-06-11 12:37:25 -050034 xyz.openbmc_project.Control.Host.NMI.service \
Andrew Geissler82cfa662020-02-17 15:11:03 -060035 op-stop-instructions@.service \
36 op-cfam-reset.service \
Eddie James4fcacea2020-02-11 13:51:26 -060037 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'set-spi-mux.service', '', d)} \
Dhruvaraj Subhashchandranc8aa6a12020-03-09 13:04:32 -050038 op-continue-mpreboot@.service \
39 op-enter-mpreboot@.service \
Ramesh Iyyard6d9b542020-09-17 10:02:08 -050040 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-reinit-devtree.service', '', d)} \
Chirag Sharma5ec16a32020-12-11 03:45:15 -060041 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'proc-pre-poweroff@.service', '', d)} \
Andrew Geissler4d2fd8d2021-06-24 15:28:47 -050042 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'op-reset-host-check@.service', '', d)} \
43 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'op-reset-host-clear.service', '', d)} \
Jayanth Othayothad68ba32021-07-30 06:35:44 -050044 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-import-devtree@.service', '', d)} \
Jayanth Othayothce7dbec2021-07-30 06:46:57 -050045 ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-export-devtree@.service', '', d)} \
Lakshminarayana R. Kammath4378a3f2019-06-11 12:37:25 -050046 "