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-systemd-links-regulators \
17    phosphor-power-psu-monitor \
18"
19
20EXTRA_IBM_LOGGING_PKGS = ""
21EXTRA_IBM_LOGGING_PKGS:witherspoon = ""
22EXTRA_IBM_LOGGING_PKGS:witherspoon-tacoma = ""
23EXTRA_IBM_LOGGING_PKGS:p10bmc = " \
24    python3-sbe-log-parsers \
25    hostboot-pel-parsers \
26"
27
28RDEPENDS:${PN}-inventory:append:ibm-ac-server = " openpower-fru-vpd openpower-occ-control phosphor-cooling-type phosphor-gpio-monitor-presence"
29RDEPENDS:${PN}-inventory:append:p10bmc = " openpower-fru-vpd openpower-occ-control phosphor-gpio-monitor-presence entity-manager"
30RDEPENDS:${PN}-inventory:append:witherspoon-tacoma = " entity-manager"
31RDEPENDS:${PN}-fan-control:append:ibm-ac-server = " fan-watchdog"
32RDEPENDS:${PN}-fan-control:append:p10bmc = " fan-watchdog sensor-monitor"
33RDEPENDS:${PN}-extras:append:ibm-ac-server = " ${POWER_SERVICE_PACKAGES_AC_SERVER} witherspoon-power-supply-sync"
34RDEPENDS:${PN}-extras:append:p10bmc = " ${POWER_SERVICE_PACKAGES_P10} dbus-sensors phosphor-virtual-sensor"
35RDEPENDS:${PN}-extras:append:p10bmc = " pldm openpower-hw-diags srvcfg-manager biosconfig-manager phosphor-post-code-manager phosphor-host-postd debug-trigger libmctp"
36RDEPENDS:${PN}-extras:append:witherspoon-tacoma = " pldm srvcfg-manager biosconfig-manager phosphor-post-code-manager phosphor-host-postd kexec-tools makedumpfile kdump vmcore-dmesg debug-trigger libmctp"
37RDEPENDS:${PN}-extras:append:sbp1 = " phosphor-ipmi-ipmb "
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"
45RDEPENDS:${PN}-devtools:remove:witherspoon = "rsync"
46
47RDEPENDS:${PN}-software:append:ibm-ac-server = " phosphor-software-manager-sync"
48RDEPENDS:${PN}-software:append:p10bmc = " phosphor-software-manager-usb"
49RDEPENDS:${PN}-software:append:p10bmc = " phosphor-software-manager-side-switch"
50RDEPENDS:${PN}-software:append:system1 = " phosphor-software-manager-side-switch"
51