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 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 19f86730..df67e0f4 100644 --- a/Makefile +++ b/Makefile @@ -750,7 +750,12 @@ FEATURE_CFLAGS += -D'CONFIG_I2C_SUPPORT=1' endif ifneq ($(NEED_SERIAL), ) -LIB_OBJS += serial.o custom_baud.o +LIB_OBJS += serial.o +ifeq ($(TARGET_OS), Linux) +LIB_OBJS += custom_baud_linux.o +else +LIB_OBJS += custom_baud.o +endif endif ifneq ($(NEED_POSIX_SOCKETS), ) -- cgit v1.2.3