1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +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

@ -365,25 +365,6 @@ ifneq ($(ARCH), $(filter $(ARCH), x86 mips ppc arm sparc arc))
$(call mark_unsupported,$(DEPENDS_ON_RAW_MEM_ACCESS))
endif
ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Linux Darwin NetBSD OpenBSD))
FEATURE_FLAGS += -D'USE_IOPL=1'
else
FEATURE_FLAGS += -D'USE_IOPL=0'
endif
ifeq ($(TARGET_OS), $(filter $(TARGET_OS), FreeBSD FreeBSD-glibc DragonFlyBSD))
FEATURE_FLAGS += -D'USE_DEV_IO=1'
else
FEATURE_FLAGS += -D'USE_DEV_IO=0'
endif
ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Hurd))
FEATURE_FLAGS += -D'USE_IOPERM=1'
else
FEATURE_FLAGS += -D'USE_IOPERM=0'
endif
###############################################################################
# Flash chip drivers and bus support infrastructure.