obmcutil: add meson.option to prevent install
This utility does not work on all systems, such as multi-host
systems. Add an option that allows system maintainers to prevent
it from being installed.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I28f66229eeaace895d3c7771d60d5fd71f49bee8
diff --git a/meson.build b/meson.build
index e9e5729..02c13dd 100644
--- a/meson.build
+++ b/meson.build
@@ -253,11 +253,13 @@
install: true,
)
-install_data(
- 'obmcutil',
- install_mode: 'rwxr-xr-x',
- install_dir: get_option('bindir'),
-)
+if get_option('install-utils').allowed()
+ install_data(
+ 'obmcutil',
+ install_mode: 'rwxr-xr-x',
+ install_dir: get_option('bindir'),
+ )
+endif
install_data(
'scripts/host-reboot',