mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
custom_baud: move Linux specific code into own file
Handle system specific code in an own file like i2c_helper_linux.c. The build system decides when to build it. Change-Id: I0744e769dcc6000483e7256105903a87e927ee77 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/57990 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
5a8b0773dd
commit
29ff205e6f
@ -323,8 +323,12 @@ endif
|
||||
|
||||
# raw serial IO
|
||||
if need_serial
|
||||
srcs += 'custom_baud.c'
|
||||
srcs += 'serial.c'
|
||||
if host_machine.system() == 'linux'
|
||||
srcs += 'custom_baud_linux.c'
|
||||
else
|
||||
srcs += 'custom_baud.c'
|
||||
endif
|
||||
endif
|
||||
|
||||
prefix = get_option('prefix')
|
||||
|
Reference in New Issue
Block a user