mainapp: Add an option for watching post codes

We have some machines that use an IPMI watchdog, but can sometimes take
so long to reboot that the watchdog ends up tripping during the boot
process. Unfortunately the boot firmware has no method of talking IPMI
to pet the watchdog, but does emit post codes during the boot up process
when it makes forward progress.

This change adds a flag to instruct the watchdog that it should reset
the TimeRemaining on the watchdog any time new post codes are seen from
the host.

Tested:
    Verified that post codes signals were received during
    the boot process and the watchdog TimeRemaining was updated
    accordingly.

Change-Id: Ie0616f0fe4ee6601f9afdc4eba71f34968780794
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed