blob: ee1d9ea66719f2c8078685f8c18b5bd528f9cd1f [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
Patrick Williamsbccaff32023-04-14 11:24:47 -050013SRC_URI = "git://github.com/openbmc/openpower-proc-control;branch=master;protocol=https"
Andrew Geisslerb60323d2024-01-19 15:00:29 -060014SRCREV = "969196c323cb9bac9281195191c5774184d1daad"
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 Geisslerb9b3a4a2023-05-12 14:10:34 -050022RDEPENDS:${PN} += " op-proc-control-systemd-links"
23
Andrew Geisslerbbc6b9d2021-06-10 15:26:49 -050024EXTRA_OEMESON += "-Dtests=disabled"
25
Andrew Jeffery20973e02019-08-07 10:38:11 +093026# For libpdbg, provided by the pdbg package
27DEPENDS += "pdbg"
28
Andrew Geissler07f6ad02022-05-23 15:53:39 -040029PACKAGECONFIG ??= "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal op-fsi', d)}"
30PACKAGECONFIG[phal] = "-Dphal=enabled, -Dphal=disabled -Dp9=enabled, ipl pdata"
31PACKAGECONFIG[op-fsi] = "-Dopenfsi=enabled, -Dopenfsi=disabled"
32
33# By default all openpower systems support op-fsi
34PACKAGECONFIG = " op-fsi"
35
Andrew Geissler643013c2018-11-20 03:20:12 +000036TEMPLATE = "pcie-poweroff@.service"
37INSTANCE_FORMAT = "pcie-poweroff@{}.service"
38INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}"
39SYSTEMD_PACKAGES = "${PN}"
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000040SYSTEMD_SERVICE:${PN} = "${TEMPLATE} ${INSTANCES}"
Lakshminarayana R. Kammath4378a3f2019-06-11 12:37:25 -050041
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000042SYSTEMD_SERVICE:${PN} += " \
Patrick Williams8c561ee2021-10-22 14:20:12 -050043 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 Iyyard0aedb92022-02-24 03:35:40 -060055 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'phal-create-boottime-guard-indicator.service', '', d)} \
Andrew Geisslerf158d902022-04-08 16:24:35 -050056 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-clear-sys-dump-active@.service', '', d)} \
Jayanth Othayoth633a9cc2022-09-12 06:23:45 -050057 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', 'op-clock-data-logger@.service', '', d)} \
Patrick Williams8c561ee2021-10-22 14:20:12 -050058 "