mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
meson: Build the ich_descriptors_tool as feature
Provide the meson option `-Dich_descriptors_tool=auto/enable/disabled` to determin if the ich_descriptors_tool should be build or not. On `auto` or `enabled` it will be, on `disabled` it will not be build. This is usefull for environments where the ich_descriptors_tool is not needed. Change-Id: Ief65a914019f72536d563eda36bd7f2f5330bea8 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66704 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
parent
374871c039
commit
e4137c6913
@ -489,7 +489,9 @@ executable(
|
||||
link_with : libflashrom.get_static_lib(), # flashrom needs internal symbols of libflashrom
|
||||
)
|
||||
|
||||
subdir('util')
|
||||
if get_option('ich_descriptors_tool').auto() or get_option('ich_descriptors_tool').enabled()
|
||||
subdir('util/ich_descriptors_tool')
|
||||
endif
|
||||
|
||||
# Use `.auto() or .enabled()` instead of `.allowed()` to keep the minimum meson version as low as possible.
|
||||
# `.allowed()` gets introduced in 0.59.0
|
||||
|
@ -3,6 +3,7 @@ option('usb', type : 'boolean', value : true, description : 'use libusb1')
|
||||
option('print_wiki', type : 'boolean', value : true, description : 'Print Wiki')
|
||||
option('default_programmer_name', type : 'string', description : 'default programmer')
|
||||
option('default_programmer_args', type : 'string', description : 'default programmer arguments')
|
||||
option('ich_descriptors_tool', type : 'feature', value : 'auto', description : 'Build ich_descriptors_tool')
|
||||
|
||||
option('config_atahpt', type : 'boolean', value : false, description : 'Highpoint (HPT) ATA/RAID controllers')
|
||||
option('config_atapromise', type : 'boolean', value : false, description : 'Promise ATA controller')
|
||||
|
@ -1 +0,0 @@
|
||||
subdir('ich_descriptors_tool')
|
Loading…
x
Reference in New Issue
Block a user