diff options
author | Chirag Sharma <chirshar@in.ibm.com> | 2020-12-11 12:45:15 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-12-15 21:53:48 +0300 |
commit | 5ec16a36be98bc6a5223319e6cc9d41719b6fb8f (patch) | |
tree | 85cc99ef5d1b6cd1b1a0f08c6158c8e35782dd72 | |
parent | d564f2c3efad4338584e70f0af651321a4b8d0e7 (diff) | |
download | openbmc-5ec16a36be98bc6a5223319e6cc9d41719b6fb8f.tar.xz |
meta-openpower: Adding proc-pre-poweroff service
Changes:
-Adding support for new service
i.e. proc-pre-poweroff@.service, which will be called
during poweroff.
(From meta-openpower rev: 064663fa543eb32bf55f0657a56a3a6cf47bfe0e)
Signed-off-by: Chirag Sharma <chirshar@in.ibm.com>
Change-Id: I066bb91237f838c87de3da8e10b4d5a4fe7636e8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r-- | meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb | 7 | ||||
-rw-r--r-- | meta-openpower/recipes-phosphor/host/op-proc-control_git.bb | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb b/meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb index 521ff02b9..26e42e2f9 100644 --- a/meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb +++ b/meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb @@ -52,6 +52,10 @@ pkg_postinst_${PN}() { LINK="$D$systemd_system_unitdir/obmc-host-start@0.target.requires/phal-reinit-devtree.service" TARGET="../phal-reinit-devtree.service" ln -s $TARGET $LINK + + LINK="$D$systemd_system_unitdir/obmc-chassis-poweroff@0.target.requires/proc-pre-poweroff@0.service" + TARGET="../proc-pre-poweroff@.service" + ln -s $TARGET $LINK fi } @@ -76,5 +80,8 @@ pkg_prerm_${PN}() { if [ "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" = phal ]; then LINK="$D$systemd_system_unitdir/obmc-host-start@0.target.requires/phal-reinit-devtree.service" rm $LINK + + LINK="$D$systemd_system_unitdir/obmc-chassis-poweroff@0.target.requires/proc-pre-poweroff@0.service" + rm $LINK fi } diff --git a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb index 1fc98410d..404cad95f 100644 --- a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb +++ b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb @@ -11,7 +11,7 @@ inherit autotools obmc-phosphor-utils pkgconfig inherit systemd SRC_URI += "git://github.com/openbmc/openpower-proc-control" -SRCREV = "31228b9b4bc4310c97846bb35730fa96c060d47b" +SRCREV = "a257693a639a33a7ec1f6dbe8ddf5f969b6b8d39" DEPENDS += " \ autoconf-archive-native \ @@ -37,4 +37,5 @@ SYSTEMD_SERVICE_${PN} += " \ op-continue-mpreboot@.service \ op-enter-mpreboot@.service \ ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-reinit-devtree.service', '', d)} \ + ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'proc-pre-poweroff@.service', '', d)} \ " |