PHAL: import devtree tool support
Added tool to import devtree attributes from BMC predefined
location to current phal devtree in the system. This tool
is used to override that r/w attribute data after concurrent
code update BMC reboot path.
./openpower-proc-control importDevtree
Tested : regular reboot path ( with attribute data file)
~# systemctl status phal-import-devtree@0.service
○ phal-import-devtree@0.service - Import Host0 PHAL devtree attributes
Loaded: loaded (/lib/systemd/system/phal-import-devtree@.service; static)
Active: inactive (dead) since Mon 2021-08-02 12:03:09 UTC; 2min 55s ago
Process: 493 ExecStart=/usr/bin/openpower-proc-control importDevtree (code=exited, status=0/SUCCESS)
Main PID: 493 (code=exited, status=0/SUCCESS)
Aug 02 12:03:02 rain71bmc systemd[1]: Starting Import Host0 PHAL devtree attributes...
Aug 02 12:03:03 rain71bmc systemd[1]: Finished Import Host0 PHAL devtree attributes.
Aug 02 12:03:09 rain71bmc systemd[1]: phal-import-devtree@0.service: Deactivated successfully.
Aug 02 12:03:09 rain71bmc systemd[1]: Stopped Import Host0 PHAL devtree attributes.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I6ea5e78b4d87a53f45b60ba33a658294feec7c1d
diff --git a/meson.build b/meson.build
index 8a2d7bd..7492300 100644
--- a/meson.build
+++ b/meson.build
@@ -80,9 +80,10 @@
'procedures/phal/start_host.cpp',
'procedures/phal/set_SPI_mux.cpp',
'procedures/phal/proc_pre_poweroff.cpp',
+ 'procedures/phal/check_host_running.cpp',
+ 'procedures/phal/import_devtree.cpp',
'extensions/phal/common_utils.cpp',
'extensions/phal/pdbg_utils.cpp',
- 'procedures/phal/check_host_running.cpp',
'extensions/phal/create_pel.cpp',
'extensions/phal/phal_error.cpp',
]