mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
meson: Overhaul the print_wiki option
- Rename `print_wiki` to `classic_cli_print_wiki` - Make it a meson feature type - `classic_cli` must be enabled to enable `classic_cli_print_wiki` - `classic_cli_print_wiki` is disabled by default Change-Id: Ic6c959b8b64ec2756b4535bd1b3320860f836aa5 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66703 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c696220f97
commit
66dc554d7f
14
meson.build
14
meson.build
@ -75,7 +75,7 @@ config_stlinkv3_spi = get_option('config_stlinkv3_spi')
|
||||
config_parade_lspcon = get_option('config_parade_lspcon')
|
||||
config_mediatek_i2c_spi = get_option('config_mediatek_i2c_spi')
|
||||
config_realtek_mst_i2c_spi = get_option('config_realtek_mst_i2c_spi')
|
||||
config_print_wiki= get_option('print_wiki')
|
||||
config_print_wiki= get_option('classic_cli_print_wiki')
|
||||
config_default_programmer_name = get_option('default_programmer_name')
|
||||
config_default_programmer_args = get_option('default_programmer_args')
|
||||
|
||||
@ -409,9 +409,15 @@ if need_serial
|
||||
endif
|
||||
endif
|
||||
|
||||
if config_print_wiki
|
||||
srcs += files('print_wiki.c')
|
||||
cargs += '-DCONFIG_PRINT_WIKI=1'
|
||||
|
||||
|
||||
if config_print_wiki.enabled()
|
||||
if get_option('classic_cli').disabled()
|
||||
error('`classic_cli_print_wiki` can not be enabled without `classic_cli`')
|
||||
else
|
||||
srcs += files('print_wiki.c')
|
||||
cargs += '-DCONFIG_PRINT_WIKI=1'
|
||||
endif
|
||||
endif
|
||||
|
||||
if config_default_programmer_name != ''
|
||||
|
@ -1,7 +1,7 @@
|
||||
option('pciutils', type : 'boolean', value : true, description : 'use pciutils')
|
||||
option('usb', type : 'boolean', value : true, description : 'use libusb1')
|
||||
option('classic_cli', type : 'feature', value : 'enabled', description : 'classic flashrom cli binary')
|
||||
option('print_wiki', type : 'boolean', value : true, description : 'Print Wiki')
|
||||
option('classic_cli_print_wiki', type : 'feature', value : 'disabled', 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user