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
diff --git a/meson_options.txt b/meson_options.txt
index 6793077..5b3c182 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,5 +1,2 @@
option('systemd', type: 'boolean', value: true)
-option('p10bmc-debug-trigger-kcs1', type: 'boolean', value: false)
-option('p10bmc-debug-trigger-kcs2', type: 'boolean', value: false)
-option('p10bmc-debug-trigger-kcs3', type: 'boolean', value: false)
-option('p10bmc-debug-trigger-kcs4', type: 'boolean', value: false)
+option('triggers', type : 'array', choices : ['kcs1', 'kcs2', 'kcs3', 'kcs4' ])