1POWER_SERVICE_PACKAGES_AC_SERVER = " \
2    phosphor-power-monitor \
3    phosphor-power-systemd-links-monitor \
4    phosphor-power-sequencer \
5    phosphor-power-systemd-links-sequencer \
6    phosphor-power-utils \
7    phosphor-power \
8"
9
10# P10 does not need/want the old PSU monitor
11POWER_SERVICE_PACKAGES_P10 = " \
12    phosphor-power-control \
13    phosphor-power-utils \
14    phosphor-power \
15    phosphor-power-regulators \
16    phosphor-power-psu-monitor \
17"
18
19EXTRA_IBM_LOGGING_PKGS = ""
20EXTRA_IBM_LOGGING_PKGS:witherspoon = "ibm-logging"
21EXTRA_IBM_LOGGING_PKGS:witherspoon-tacoma = ""
22EXTRA_IBM_LOGGING_PKGS:mihawk = "ibm-logging"
23EXTRA_IBM_LOGGING_PKGS:p10bmc = " \
24    python3-sbe-log-parsers \
25"
26
27RDEPENDS:${PN}-inventory:append:ibm-ac-server = " openpower-fru-vpd openpower-occ-control phosphor-cooling-type virtual/obmc-gpio-presence"
28RDEPENDS:${PN}-inventory:append:p10bmc = " openpower-fru-vpd openpower-occ-control virtual/obmc-gpio-presence"
29RDEPENDS:${PN}-inventory:append:mihawk = " openpower-fru-vpd openpower-occ-control virtual/obmc-gpio-presence id-button phosphor-cooling-type"
30RDEPENDS:${PN}-fan-control:append:ibm-ac-server = " fan-watchdog"
31RDEPENDS:${PN}-fan-control:append:p10bmc = " fan-watchdog sensor-monitor"
32RDEPENDS:${PN}-extras:append:ibm-ac-server = " ${POWER_SERVICE_PACKAGES_AC_SERVER} witherspoon-power-supply-sync"
33RDEPENDS:${PN}-extras:append:p10bmc = " ${POWER_SERVICE_PACKAGES_P10} webui-vue dbus-sensors phosphor-virtual-sensor"
34RDEPENDS:${PN}-extras:append:p10bmc = " pldm openpower-hw-diags srvcfg-manager biosconfig-manager phosphor-post-code-manager phosphor-host-postd debug-trigger libmctp"
35RDEPENDS:${PN}-extras:append:p10bmc = " gdbserver strace opkg"
36RDEPENDS:${PN}-extras:append:mihawk = " phosphor-webui phosphor-image-signing wistron-ipmi-oem ${POWER_SERVICE_PACKAGES_AC_SERVER}"
37RDEPENDS:${PN}-extras:append:witherspoon-tacoma = " pldm srvcfg-manager webui-vue biosconfig-manager phosphor-post-code-manager phosphor-host-postd kexec-tools makedumpfile kdump vmcore-dmesg debug-trigger"
38
39RDEPENDS:${PN}-extras:remove:p10bmc = "obmc-ikvm liberation-fonts uart-render-controller"
40RDEPENDS:${PN}-host-state-mgmt:remove:p10bmc = "checkstop-monitor"
41RDEPENDS:${PN}-extras:remove:swift = "obmc-ikvm"
42RDEPENDS:${PN}-extras:remove:witherspoon-tacoma = "obmc-ikvm liberation-fonts uart-render-controller"
43RDEPENDS:${PN}-logging:append = " ${EXTRA_IBM_LOGGING_PKGS}"
44RDEPENDS:${PN}-leds:remove:witherspoon-tacoma = "phosphor-led-manager-faultmonitor"
45
46${PN}-software-extras:append:ibm-ac-server = " phosphor-software-manager-sync"
47${PN}-software-extras:append:p10bmc = " phosphor-software-manager-usb"
48