diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2021-07-30 14:46:57 +0300 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2021-08-09 18:04:59 +0300 |
commit | ce7dbecf0facf092f488748b1d9bd7734b88c6d8 (patch) | |
tree | 0ad93301fe857154a5a811fec305ba43cea894e8 /meta-openpower | |
parent | ad68ba3cd5b6f0674465cd05e67041a7a3a0fb31 (diff) | |
download | openbmc-ce7dbecf0facf092f488748b1d9bd7734b88c6d8.tar.xz |
meta-openpower: phal devtree data export service
Service to collect r/w devtree attribute data from the
devtree and save to known location. This is data
collected prior to concurrent software update and applied
to new device tree in the reboot followed by concurrent
software update.
Version bump to enable service back-end support.
tested:
Jul 30 14:27:35 xxx phal-export-devtree[2624]: Software path
interface add signal received
Jul 30 14:27:35 xxx phal-export-devtree[2624]: Successfully
exported devtree attribute data
root@xx:~# ls /var/lib/phal/
exportdevtree
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: Ic2462f596a7ffcc716254577dc693d580111b766
Diffstat (limited to 'meta-openpower')
-rw-r--r-- | meta-openpower/recipes-phosphor/host/op-proc-control-systemd-links.bb | 8 | ||||
-rw-r--r-- | meta-openpower/recipes-phosphor/host/op-proc-control_git.bb | 1 |
2 files changed, 9 insertions, 0 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 a30a3e46c..e96fda5ac 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 @@ -66,6 +66,11 @@ pkg_postinst_${PN}() { LINK="$D$systemd_system_unitdir/multi-user.target.wants/phal-import-devtree@0.service" TARGET="../phal-import-devtree@.service" ln -s $TARGET $LINK + + mkdir -p $D$systemd_system_unitdir/obmc-host-startmin@0.target.wants + LINK="$D$systemd_system_unitdir/obmc-host-startmin@0.target.wants/phal-export-devtree@0.service" + TARGET="../phal-export-devtree@.service" + ln -s $TARGET $LINK fi # If the memory preserving reboot feature is enabled, set it up @@ -119,6 +124,9 @@ pkg_prerm_${PN}() { LINK="$D$systemd_system_unitdir/multi-user.target.wants/phal-import-devtree@0.service" rm $LINK + + LINK="$D$systemd_system_unitdir/obmc-host-startmin@0.target.wants/phal-export-devtree@0.service" + rm $LINK fi # Remove mpreboot specific units if enabled 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 3fe33b6ed..f0dbf9b87 100644 --- a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb +++ b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb @@ -42,4 +42,5 @@ SYSTEMD_SERVICE_${PN} += " \ ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'op-reset-host-check@.service', '', d)} \ ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'op-reset-host-clear.service', '', d)} \ ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-import-devtree@.service', '', d)} \ + ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-export-devtree@.service', '', d)} \ " |