mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
meson: Build the classic cli / flashrom cli executable as feature
Provide the meson option `-Dclassic_cli=auto/enabled/disabled` to determine if the classic cli flashrom executable should be built. This is needed to support targets, like libpayload, which can only build libflashrom. Change-Id: If39981ad0b3281edd6fc7e220362d2938dddf814 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66705 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
c8b23a0902
commit
c696220f97
@ -478,6 +478,7 @@ configure_file(
|
||||
install_dir: join_paths(get_option('mandir'), 'man8'),
|
||||
)
|
||||
|
||||
if get_option('classic_cli').auto() or get_option('classic_cli').enabled()
|
||||
executable(
|
||||
'flashrom',
|
||||
files(
|
||||
@ -491,6 +492,7 @@ executable(
|
||||
install_dir : get_option('sbindir'),
|
||||
link_with : libflashrom.get_static_lib(), # flashrom needs internal symbols of libflashrom
|
||||
)
|
||||
endif
|
||||
|
||||
if get_option('ich_descriptors_tool').auto() or get_option('ich_descriptors_tool').enabled()
|
||||
subdir('util/ich_descriptors_tool')
|
||||
|
@ -1,5 +1,6 @@
|
||||
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('default_programmer_name', type : 'string', description : 'default programmer')
|
||||
option('default_programmer_args', type : 'string', description : 'default programmer arguments')
|
||||
|
Loading…
x
Reference in New Issue
Block a user