Nico Huber has uploaded this change for review.

View Change

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>
---
M Makefile
1 file changed, 4 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/86/52486/1
diff --git a/Makefile b/Makefile
index 0cfff55..570c868 100644
--- a/Makefile
+++ b/Makefile
@@ -1198,12 +1198,14 @@
PROGRAMMER_OBJS += physmap.o hwaccess.o

ifeq ($(TARGET_OS), NetBSD)
-# For (i386|x86_64)_iopl(2).
+ifeq ($(ARCH), x86)
PCILIBS += -l$(shell uname -p)
+endif
else
ifeq ($(TARGET_OS), OpenBSD)
-# For (i386|amd64)_iopl(2).
+ifeq ($(ARCH), x86)
PCILIBS += -l$(shell uname -m)
+endif
else
ifeq ($(TARGET_OS), Darwin)
# DirectHW framework can be found in the DirectHW library.

To view, visit change 52486. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I440919c12e54ca4371e21bc8d1b5ab64692fb4b8
Gerrit-Change-Number: 52486
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: newchange