mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 23:43:42 +02:00
Makefile: Turn x86-arch comments into if
Actually check what the comments suggest. Supposed to fix non-x86 on NetBSD and OpenBSD. Change-Id: I440919c12e54ca4371e21bc8d1b5ab64692fb4b8 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52486 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
d0fa8c0408
commit
9c0e009f7e
6
Makefile
6
Makefile
@ -1186,12 +1186,14 @@ FEATURE_CFLAGS += -D'NEED_RAW_ACCESS=1'
|
|||||||
PROGRAMMER_OBJS += physmap.o hwaccess.o
|
PROGRAMMER_OBJS += physmap.o hwaccess.o
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), NetBSD)
|
ifeq ($(TARGET_OS), NetBSD)
|
||||||
# For (i386|x86_64)_iopl(2).
|
ifeq ($(ARCH), x86)
|
||||||
PCILIBS += -l$(shell uname -p)
|
PCILIBS += -l$(shell uname -p)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(TARGET_OS), OpenBSD)
|
ifeq ($(TARGET_OS), OpenBSD)
|
||||||
# For (i386|amd64)_iopl(2).
|
ifeq ($(ARCH), x86)
|
||||||
PCILIBS += -l$(shell uname -m)
|
PCILIBS += -l$(shell uname -m)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(TARGET_OS), Darwin)
|
ifeq ($(TARGET_OS), Darwin)
|
||||||
# DirectHW framework can be found in the DirectHW library.
|
# DirectHW framework can be found in the DirectHW library.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user