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
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 8e214c3..f6fa3c4 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 @@
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
}