Add IPMI OEM command LinuxBootDone
Add a new OEM command for LinuxBoot to notify the BMC when it is about
to kexec into the OS. This is intended to give the BMC a chance to
prepare for an untrusted OS, e.g. disable any interfaces it doesn't want
the OS to have access to.
Tested:
Exercised the new OEM command using ipmitool
$ ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x11
79 2b 00 11
Change-Id: Ica76d77cdde48cebfbced32d8e7e860b559074e8
Signed-off-by: John Wedig <johnwedig@google.com>
diff --git a/meson.build b/meson.build
index e6c407d..7ea91d2 100644
--- a/meson.build
+++ b/meson.build
@@ -71,6 +71,7 @@
'handler.cpp',
'host_power_off.cpp',
'ipmi.cpp',
+ 'linux_boot_done.cpp',
'machine_name.cpp',
'pcie_i2c.cpp',
'google_accel_oob.cpp',
@@ -102,6 +103,7 @@
systemd_dep = dependency('systemd')
if systemd_dep.found()
install_data(
+ 'gbmc-bare-metal-active.target',
'gbmc-host-poweroff.target',
'gbmc-psu-hardreset.target',
'gbmc-psu-hardreset-pre.target',