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 = ""
21EXTRA_IBM_LOGGING_PKGS:witherspoon-tacoma = ""
22EXTRA_IBM_LOGGING_PKGS:p10bmc = " \
23    python3-sbe-log-parsers \
24"
25
26RDEPENDS:${PN}-inventory:append:ibm-ac-server = " openpower-fru-vpd openpower-occ-control phosphor-cooling-type phosphor-gpio-monitor-presence"
27RDEPENDS:${PN}-inventory:append:p10bmc = " openpower-fru-vpd openpower-occ-control phosphor-gpio-monitor-presence"
28RDEPENDS:${PN}-fan-control:append:ibm-ac-server = " fan-watchdog"
29RDEPENDS:${PN}-fan-control:append:p10bmc = " fan-watchdog sensor-monitor"
30RDEPENDS:${PN}-extras:append:ibm-ac-server = " ${POWER_SERVICE_PACKAGES_AC_SERVER} witherspoon-power-supply-sync"
31RDEPENDS:${PN}-extras:append:p10bmc = " ${POWER_SERVICE_PACKAGES_P10} webui-vue dbus-sensors phosphor-virtual-sensor"
32RDEPENDS:${PN}-extras:append:p10bmc = " pldm openpower-hw-diags srvcfg-manager biosconfig-manager phosphor-post-code-manager phosphor-host-postd debug-trigger libmctp"
33RDEPENDS:${PN}-extras:append:p10bmc = " gdbserver strace opkg"
34RDEPENDS:${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"
35
36RDEPENDS:${PN}-extras:remove:p10bmc = "obmc-ikvm liberation-fonts uart-render-controller"
37RDEPENDS:${PN}-host-state-mgmt:remove:p10bmc = "checkstop-monitor"
38RDEPENDS:${PN}-extras:remove:swift = "obmc-ikvm"
39RDEPENDS:${PN}-extras:remove:witherspoon-tacoma = "obmc-ikvm liberation-fonts uart-render-controller"
40RDEPENDS:${PN}-logging:append = " ${EXTRA_IBM_LOGGING_PKGS}"
41RDEPENDS:${PN}-leds:remove:witherspoon-tacoma = "phosphor-led-manager-faultmonitor"
42RDEPENDS:${PN}-devtools:remove:witherspoon = "rsync"
43
44${PN}-software-extras:append:ibm-ac-server = " phosphor-software-manager-sync"
45${PN}-software-extras:append:p10bmc = " phosphor-software-manager-usb"
46${PN}-software-extras:append:p10bmc = " phosphor-software-manager-side-switch"