1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

hwaccess_x86_io: clean header concept

Move all function implementations into the .c file

TEST: `[g]make [WARNERROR=no]` on Linux, FreeBSD, NetBSD, OpenBSD,
DragonflyBSD, OpenIndiana, Debian-GNU/Hurd

Change-Id: I1400704e9ac5fed00c096796536108d5bfb875e3
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/61276
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Thomas Heijligen
2022-01-20 16:45:14 +01:00
committed by Nico Huber
parent 60c3b61d09
commit 0f51f62c62
4 changed files with 315 additions and 188 deletions

View File

@ -42,24 +42,6 @@ else
add_project_arguments('-DIS_WINDOWS=0', language : 'c')
endif
if host_machine.system() in ['linux', 'darwin', 'netbsd', 'openbsd']
add_project_arguments('-DUSE_IOPL=1', language : 'c')
else
add_project_arguments('-DUSE_IOPL=0', language : 'c')
endif
if host_machine.system() in ['freebsd', 'dragonfly']
add_project_arguments('-DUSE_DEV_IO=1', language : 'c')
else
add_project_arguments('-DUSE_DEV_IO=0', language : 'c')
endif
if host_machine.system() in ['gnu']
add_project_arguments('-DUSE_IOPERM=1', language : 'c')
else
add_project_arguments('-DUSE_IOPERM=0', language : 'c')
endif
# get defaults from configure
config_atahpt = get_option('config_atahpt')
config_atapromise = get_option('config_atapromise')