summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan A. Kollasch <jakllsch@kollasch.net>2010-01-08 21:18:08 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-01-08 21:18:08 +0000
commit3646c8f31fbb4f52cac04129b8d6898fb00e1eab (patch)
treea33cfec31d050837f0466feeda9deef0c636b4f6 /Makefile
parentaca1dce951be2d36d934910a80e19d4b56d455eb (diff)
downloadflashrom-3646c8f31fbb4f52cac04129b8d6898fb00e1eab.tar.gz
flashrom-3646c8f31fbb4f52cac04129b8d6898fb00e1eab.tar.bz2
flashrom-3646c8f31fbb4f52cac04129b8d6898fb00e1eab.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8a9c13f78..d2f04ec3e 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,10 @@ PROGRAMMER_OBJS += pcidev.o physmap.o internal.o #FIXME: We need to move stuff
# 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)