mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-05 15:50:41 +02:00
udelay: move into platform folder
Change-Id: I9910cd1f5850a6f86e26bb1dc4ff26614f0a0964 Signed-off-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/88270 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
e5f377c662
commit
51a7275a31
@ -10,6 +10,16 @@ if host_machine.endian() == 'big'
|
||||
add_project_arguments('-D__FLASHROM_BIG_ENDIAN__=1', language : 'c')
|
||||
endif
|
||||
|
||||
# Select an appropriate delay implementation for the target OS
|
||||
delay_src = files('udelay.c')
|
||||
if target_machine.system() == 'dos'
|
||||
delay_src = files('udelay_dos.c')
|
||||
endif
|
||||
srcs += delay_src
|
||||
cargs += ['-DCONFIG_DELAY_MINIMUM_SLEEP_US=@0@'.format(
|
||||
get_option('delay_minimum_sleep_us')
|
||||
)]
|
||||
|
||||
# OpenBSD requires libi386 or libamd64 for I/O port handling
|
||||
if host_machine.system() == 'openbsd'
|
||||
if host_machine.cpu_family() == 'x86'
|
||||
@ -32,7 +42,6 @@ if host_machine.system() == 'netbsd'
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# SunOS requires external libraries for network sockets
|
||||
# they are used to support serial devices via network
|
||||
if host_machine.system() == 'sunos'
|
||||
|
Reference in New Issue
Block a user