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: I794c658531483266bfce6f9b28127a166ed01490
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/test/meson.build b/libpldmresponder/test/meson.build
index 73938b4..8c9a845 100644
--- a/libpldmresponder/test/meson.build
+++ b/libpldmresponder/test/meson.build
@@ -14,7 +14,7 @@
]
-if get_option('oem-ibm').enabled()
+if get_option('oem-ibm').allowed()
tests += [
'../../oem/ibm/test/libpldmresponder_fileio_test',
'../../oem/ibm/test/libpldmresponder_oem_platform_test'
@@ -26,7 +26,7 @@
implicit_include_directories: false,
include_directories: [ '../../requester', '../../pldmd' ],
link_args: dynamic_linker,
- build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
+ build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
dependencies: [
libpldm_dep,
libpldmresponder_dep,