pinhole: check for bmc reset reason
If firmware can not determine the reason for the BMC reset via the sysfs
bootstatus value then look for the pinhole rest GPIO to see if that is
the reason for the reboot.
See the following for more details:
https://github.com/openbmc/docs/blob/master/designs/power-recovery.md
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: If8e6e8cdc54dcb5f596d530c03c4676117fc8a47
diff --git a/meson.build b/meson.build
index 8bafd18..1ac11e8 100644
--- a/meson.build
+++ b/meson.build
@@ -112,9 +112,10 @@
executable('phosphor-bmc-state-manager',
'bmc_state_manager.cpp',
'bmc_state_manager_main.cpp',
+ 'utils.cpp',
dependencies: [
sdbusplus, sdeventplus, phosphorlogging,
- phosphordbusinterfaces, cppfs
+ phosphordbusinterfaces, cppfs, libgpiod
],
implicit_include_directories: true,
install: true