PHAL: add phal-export-devtree app
d-bus signal based watch app for software path interface add.
This implements methods for watching for software path
interface add signal and call appropriate function to
initiate phal devtree attribute data collection and save
to preserve partition.
Rules:
- Watch for interfaces added for the software path
- If interface added is “Activation”
- if Activation property value is “Ready”
- Then software update is going to start
- Collect phal devtree required attribute list and
save to pre-defined location
This commit enables the d-bus app only.
Tested : verified manually the signals by forcing
code update.
Jul 30 14:27:35 xxx phal-export-devtree[2624]: Software path
interface add signal received
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: Ia1b7a87ef5a64e3c51c8dfa2d2e4ccef34a3e934
diff --git a/meson.build b/meson.build
index b16f045..c1ff741 100644
--- a/meson.build
+++ b/meson.build
@@ -127,6 +127,23 @@
install: true
)
+if build_phal
+ executable(
+ 'phal-export-devtree',
+ [
+ 'extensions/phal/devtree_export.cpp',
+ 'extensions/phal/fw_update_watch.cpp',
+ ],
+ dependencies: [
+ dependency('phosphor-logging'),
+ dependency('sdbusplus'),
+ dependency('sdeventplus'),
+ dependency('fmt'),
+ ],
+ install: true
+ )
+endif
+
unit_files = [
'service_files/pcie-poweroff@.service',
'service_files/xyz.openbmc_project.Control.Host.NMI.service',