Add support for NetBSD
Corresponding to flashrom svn r838.
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/Makefile b/Makefile
index 8a9c13f..d2f04ec 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,10 @@
# into internal-programmer-only stuff
# and a support lib for all internal+pci
# based stuff.
+ifeq ($(OS_ARCH), NetBSD)
+LIBS += -lpciutils # The libpci we want.
+LIBS += -l$(shell uname -m) # For (i386|x86_64)_iopl(2).
+endif
endif
ifeq ($(CONFIG_PRINT_WIKI), yes)