build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I06ebdc7357b5ff4cd594adfb4cade141d3a2e675
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 4ddd290..94dabd2 100644
--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,7 @@
realpath_prog = find_program('realpath')
conf_data = configuration_data()
-if get_option('hostboot-dump-collection').enabled()
+if get_option('hostboot-dump-collection').allowed()
conf_data.set('WATCHDOG_DUMP_COLLECTION', true)
extra_deps = [
cxx.find_library('pdbg'),