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'],