summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend18
1 files changed, 1 insertions, 17 deletions
diff --git a/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend
index 62c6f96805..43ba42c73d 100644
--- a/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend
+++ b/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend
@@ -1,24 +1,8 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-DEPENDS += "gpioplus libgpiod"
-
+PACKAGECONFIG:append = " host-gpio"
EXTRA_OEMESON:append = " \
- -Dhost-gpios=enabled \
-Dboot-count-max-allowed=1 \
"
FILES:${PN} += "${systemd_system_unitdir}/*"
-FILES:${PN}-host += "${bindir}/phosphor-host-condition-gpio"
-SYSTEMD_SERVICE:${PN}-host += "phosphor-host-condition-gpio@.service"
-
-pkg_postinst:${PN}-obmc-targets:prepend() {
- mkdir -p $D$systemd_system_unitdir/multi-user.target.requires
- LINK="$D$systemd_system_unitdir/multi-user.target.requires/phosphor-host-condition-gpio@0.service"
- TARGET="../phosphor-host-condition-gpio@.service"
- ln -s $TARGET $LINK
-}
-
-pkg_prerm:${PN}-obmc-targets:prepend() {
- LINK="$D$systemd_system_unitdir/multi-user.target.requires/phosphor-host-condition-gpio@0.service"
- rm $LINK
-}