aboutsummaryrefslogtreecommitdiff
path: root/util/nvramtool/Makefile
diff options
context:
space:
mode:
authorjakllsch <jakllsch@kollasch.net>2011-02-08 16:07:49 +0000
committerJonathan A. Kollasch <jakllsch@kollasch.net>2011-02-08 16:07:49 +0000
commitb0c94a1866debb262ff1343674de871f6b770f3f (patch)
tree1a12418d6ea08b4e679901ab2ce163a4da23a16d /util/nvramtool/Makefile
parent167b79232744eea31d966bce4007d0a7c6d982ee (diff)
Add NetBSD support to nvramtool.
Signed-off-by: <jakllsch@kollasch.net> Acked-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6338 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/Makefile')
-rw-r--r--util/nvramtool/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile
index 520655dbb5..e0054cde34 100644
--- a/util/nvramtool/Makefile
+++ b/util/nvramtool/Makefile
@@ -39,6 +39,9 @@ OS_ARCH = $(shell uname)
ifeq ($(OS_ARCH), Darwin)
LDFLAGS = -framework DirectIO
endif
+ifeq ($(OS_ARCH), NetBSD)
+LDFLAGS = -l$(shell uname -p)
+endif
all: dep $(PROGRAM)