meson: Improve maintainability of build options

Exploit the array type for meson options to reduce the build system and
recipe noise with respect to the trigger selection. Discussion on how
this could be achieved occurred on the associated recipe patch:

https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/42911

Suggested-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Iaf38224047e24d10898063ee358e6f6164592001
6 files changed
tree: 4aad3427ba18877a9475ee114091bfd4597ed973
  1. meson/
  2. systemd/
  3. udev/
  4. LICENSE
  5. main.c
  6. MAINTAINERS
  7. meson.build
  8. meson_options.txt
  9. README.md
README.md

BMC Debug Trigger

debug-trigger listens for an external signal that the BMC is in some way unresponsive. When the signal is received it triggers a crash to collect debug data and reboots the system in the hope that it will recover.

Trigger sources

debug-trigger implements a simple protocol over an LPC KCS device as its trigger source.

Debug actions

debug-trigger implements a single action once the trigger event is received, which is to crash the kernel via /proc/sysrq-trigger. For systems with kdump configured this results in collection of system state as context for why the system was externally unresponsive.