diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2024-04-19 05:37:43 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2024-04-20 04:34:51 +0300 |
commit | be1677ad3d782743b1f6d84c3ce58703cc724a9c (patch) | |
tree | 2e5dfa7f731ffd672f10aceab987ddbf38902813 | |
parent | 0d0a140309b5ab5343aacffe96474560332f4b99 (diff) | |
download | openbmc-be1677ad3d782743b1f6d84c3ce58703cc724a9c.tar.xz |
meta-ampere: phosphor-state-manager: enable host-gpio PACKAGECONFIG
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0dad5301339f6738c191bcb0dd1e226c0de079dc
-rw-r--r-- | meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend | 18 |
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 -} |