summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.de>2021-09-27 15:12:26 +0200
committerNico Huber <nico.h@gmx.de>2021-09-28 22:00:41 +0000
commit29ff205e6f10895cd6c53678398b962eb18694d2 (patch)
tree5c673f6f068496f95b5b23dca283fd2d83d68e44 /Makefile
parent5a8b0773dd777b4ca60dbcc30168dc3cb5945a1a (diff)
downloadflashrom-29ff205e6f10895cd6c53678398b962eb18694d2.tar.gz
flashrom-29ff205e6f10895cd6c53678398b962eb18694d2.tar.bz2
flashrom-29ff205e6f10895cd6c53678398b962eb18694d2.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 19f867306..df67e0f40 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), )