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: I70a7a959e056eca2c58c4656dd9aa323ef0e3984
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 812d86f..c22163b 100644
--- a/meson.build
+++ b/meson.build
@@ -23,16 +23,16 @@
cpp_args = []
-if get_option('chassis-system-reset').enabled()
+if get_option('chassis-system-reset').allowed()
cpp_args += '-DCHASSIS_SYSTEM_RESET'
endif
-if get_option('use-plt-rst').enabled()
+if get_option('use-plt-rst').allowed()
cpp_args += '-DUSE_PLT_RST'
endif
-if get_option('use-acboot').enabled()
+if get_option('use-acboot').allowed()
cpp_args += '-DUSE_ACBOOT'
endif
-if get_option('ignore-soft-resets-during-post').enabled()
+if get_option('ignore-soft-resets-during-post').allowed()
cpp_args += '-DIGNORE_SOFT_RESETS_DURING_POST'
endif