From ad12a809e31ad020bf441e32702620a5d9fc072a Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 30 Oct 2021 14:03:52 +0100 Subject: [PATCH] Add a configure option for fastboot support Fixes https://github.com/fwupd/fwupd/issues/3920 --- meson_options.txt | 1 + plugins/fastboot/meson.build | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 94f73898e..7ccc9f14e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,6 +17,7 @@ option('plugin_amt', type : 'boolean', value : true, description : 'enable Intel option('plugin_dell', type : 'boolean', value : true, description : 'enable Dell-specific support') option('plugin_dummy', type : 'boolean', value : false, description : 'enable the dummy device') option('plugin_emmc', type : 'boolean', value : true, description : 'enable eMMC support') +option('plugin_fastboot', type : 'boolean', value : true, description : 'enable Fastboot support') option('plugin_logitech_bulkcontroller', type : 'boolean', value : true, description : 'enable Logitech bulk controller support') option('plugin_parade_lspcon', type : 'boolean', value : true, description : 'enable Parade LSPCON support') option('plugin_realtek_mst', type : 'boolean', value : true, description : 'enable Realtek MST hub support') diff --git a/plugins/fastboot/meson.build b/plugins/fastboot/meson.build index 25c8cd256..58a2a152c 100644 --- a/plugins/fastboot/meson.build +++ b/plugins/fastboot/meson.build @@ -1,4 +1,9 @@ -if get_option('gusb') +if get_option('plugin_fastboot') + +if not get_option('gusb') + error('gusb is required for plugin_fastboot') +endif + cargs = ['-DG_LOG_DOMAIN="FuPluginFastboot"'] install_data(['fastboot.quirk'],