mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
meson: Determine custom_baud source file only once
Change-Id: I13221bdca7d14a483f416e81e3830a495659a85e Signed-off-by: Peter Stuge <peter@stuge.se> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70568 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
parent
998c9a8c9c
commit
65e3554b13
12
meson.build
12
meson.build
@ -101,6 +101,12 @@ else
|
||||
add_project_arguments('-DIS_WINDOWS=0', language : 'c')
|
||||
endif
|
||||
|
||||
if host_machine.system() == 'linux'
|
||||
custom_baud_c = 'custom_baud_linux.c'
|
||||
else
|
||||
custom_baud_c = 'custom_baud.c'
|
||||
endif
|
||||
|
||||
systems_hwaccess = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd' ]
|
||||
systems_serial = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd', 'darwin' ]
|
||||
|
||||
@ -175,7 +181,7 @@ programmer = {
|
||||
'buspirate_spi' : {
|
||||
'systems' : systems_serial,
|
||||
'groups' : [ group_serial, group_external ],
|
||||
'srcs' : files('buspirate_spi.c', 'serial.c', (host_machine.system() == 'linux' ? 'custom_baud_linux.c' : 'custom_baud.c')),
|
||||
'srcs' : files('buspirate_spi.c', 'serial.c', custom_baud_c),
|
||||
'flags' : [ '-DCONFIG_BUSPIRATE_SPI=1' ],
|
||||
},
|
||||
'ch341a_spi' : {
|
||||
@ -391,7 +397,7 @@ programmer = {
|
||||
'pony_spi' : {
|
||||
'systems' : systems_serial,
|
||||
'groups' : [ group_serial, group_external ],
|
||||
'srcs' : files('pony_spi.c', 'serial.c', (host_machine.system() == 'linux' ? 'custom_baud_linux.c' : 'custom_baud.c')),
|
||||
'srcs' : files('pony_spi.c', 'serial.c', custom_baud_c),
|
||||
'flags' : [ '-DCONFIG_PONY_SPI=1' ],
|
||||
},
|
||||
'raiden_debug_spi' : {
|
||||
@ -435,7 +441,7 @@ programmer = {
|
||||
'serprog' : {
|
||||
'systems' : systems_serial,
|
||||
'groups' : [ group_serial, group_external ],
|
||||
'srcs' : files('serprog.c', 'serial.c', (host_machine.system() == 'linux' ? 'custom_baud_linux.c' : 'custom_baud.c')),
|
||||
'srcs' : files('serprog.c', 'serial.c', custom_baud_c),
|
||||
'flags' : [ '-DCONFIG_SERPROG=1' ],
|
||||
},
|
||||
'stlinkv3_spi' : {
|
||||
|
Loading…
x
Reference in New Issue
Block a user