From 29ff205e6f10895cd6c53678398b962eb18694d2 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Mon, 27 Sep 2021 15:12:26 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/57990 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index fcb11c63d..1a36df887 100644 --- a/meson.build +++ b/meson.build @@ -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') -- cgit v1.2.3