mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00

This makes flashrom sleep more eagerly rather than busy-waiting, observing that most delays in flashrom are either less than 100 microseconds (barely enough time to get any work done, even on a fast machine) or much more than 1 millisecond (very wasteful to busy-loop). Since we believe most systems offer good timer resolution that should provide sleep latency on the order of 100 microseconds, this is a reasonable default. For DOS, the default is set to 50ms because the best available timing source on DOS only ticks at about 20 Hz. Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I0f431d240c670446218b14811ef62a34e4c83da2 Reviewed-on: https://review.coreboot.org/c/flashrom/+/81608 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
27 lines
2.3 KiB
Meson
27 lines
2.3 KiB
Meson
option('classic_cli', type : 'feature', value : 'enabled', description : 'classic flashrom cli binary')
|
|
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('bash_completion', type : 'feature', value : 'auto', description : 'Install bash completion')
|
|
option('tests', type : 'feature', value : 'auto', description : 'Build unit tests')
|
|
option('use_internal_dmi', type : 'boolean', value : true)
|
|
option('programmer', type : 'array', value : ['auto'], choices : [
|
|
'auto', 'all',
|
|
'group_internal', 'group_external',
|
|
'group_ftdi', 'group_i2c', 'group_jlink', 'group_pci', 'group_serial', 'group_usb',
|
|
'asm106x', 'atahpt', 'atapromise', 'atavia', 'buspirate_spi', 'ch341a_spi', 'ch347_spi','dediprog',
|
|
'developerbox_spi', 'digilent_spi', 'dirtyjtag_spi', 'drkaiser', 'dummy', 'ft2232_spi',
|
|
'gfxnvidia', 'internal', 'it8212', 'jlink_spi', 'linux_mtd', 'linux_spi', 'mediatek_i2c_spi',
|
|
'mstarddc_spi', 'ni845x_spi', 'nic3com', 'nicintel', 'nicintel_eeprom', 'nicintel_spi', 'nicnatsemi',
|
|
'nicrealtek', 'ogp_spi', 'parade_lspcon', 'pickit2_spi', 'pony_spi', 'raiden_debug_spi',
|
|
'rayer_spi', 'realtek_mst_i2c_spi', 'satamv', 'satasii', 'serprog', 'stlinkv3_spi', 'usbblaster_spi',
|
|
], description: 'Active programmers')
|
|
option('llvm_cov', type : 'feature', value : 'disabled', description : 'build for llvm code coverage')
|
|
option('man-pages', type : 'feature', value : 'auto', description : 'build the man-page for classic_cli')
|
|
option('documentation', type : 'feature', value : 'auto', description : 'build the html documentation')
|
|
option('ni845x_search_path', type : 'string', value : 'C:\Program Files (x86)\National Instruments\Ni-845x\MS Visual C',
|
|
description : 'Path to search for the proprietary ni845x library and header (32-bit Windows only)')
|
|
option('delay_minimum_sleep_us', type : 'integer', min : 0, value : 100,
|
|
description : 'Minimum time in microseconds to suspend execution for (rather than polling) when a delay is required.'
|
|
+ ' Larger values may perform better on machines with low timer resolution, at the cost of increased power.')
|