diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2024-04-19 05:31:54 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2024-04-20 00:10:02 +0300 |
commit | eaff5a8909e88daab9c83089da8ef61ffa578c06 (patch) | |
tree | 712ac17ff02bcea932dbbbe2f77142729781e01a /meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc | |
parent | 9101a902bfc1290c43df6e57ccfda4025c8981c0 (diff) | |
download | openbmc-eaff5a8909e88daab9c83089da8ef61ffa578c06.tar.xz |
meta-phosphor: phosphor-state-manager: add host-gpio PACKAGECONFIG
Add a PACKAGECONFIG that enables the host-gpio feature in PSM. Set
the appropriate dependencies, meson options, and install the service
file links as appropriate.
Tested: Built Yosemite4 with enabled and verified services are attempted
to start.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia737a5645dcf472efdc75a9af7260eff60ef90ed
Diffstat (limited to 'meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc')
-rw-r--r-- | meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc index 8e214c32fa..f6fa3c4e4a 100644 --- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc +++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc @@ -146,6 +146,13 @@ pkg_postinst:${PN}-host:append() { LINK="$D$systemd_system_unitdir/multi-user.target.requires/xyz.openbmc_project.State.Host@${i}.service" TARGET="../xyz.openbmc_project.State.Host@.service" ln -s $TARGET $LINK + + if ${@bb.utils.contains('PACKAGECONFIG', 'host-gpio', 'true', 'false', d)} + then + LINK="$D$systemd_system_unitdir/multi-user.target.requires/phosphor-host-condition-gpio@${i}.service" + TARGET="../phosphor-host-condition-gpio@.service" + ln -s $TARGET $LINK + fi done } |