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: Ida574b0056c8883398ecf8efeb37316a1d120617
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 317d99e..49b2d45 100644
--- a/meson.build
+++ b/meson.build
@@ -34,8 +34,8 @@
conf_data.set_quoted('POWER_BUTTON_PROFILE', get_option('power-button-profile'))
conf_data.set('LONG_PRESS_TIME_MS', get_option('long-press-time-ms'))
-conf_data.set('LOOKUP_GPIO_BASE', get_option('lookup-gpio-base').enabled())
-conf_data.set('ENABLE_RESET_BUTTON_DO_WARM_REBOOT', get_option('reset-button-do-warm-reboot').enabled())
+conf_data.set('LOOKUP_GPIO_BASE', get_option('lookup-gpio-base').allowed())
+conf_data.set('ENABLE_RESET_BUTTON_DO_WARM_REBOOT', get_option('reset-button-do-warm-reboot').allowed())
configure_file(output: 'config.h',
configuration: conf_data