summaryrefslogtreecommitdiff
path: root/util/nvramtool/Makefile
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2012-09-28 16:02:35 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2012-09-28 14:50:02 +0200
commitb13e94c2c654bdf71ade141475f1e9f343979be2 (patch)
treeaea8055c6aaeab1c178415ccb4eeb7b75c8fb93e /util/nvramtool/Makefile
parentf78c7007c25bfc7d7fe9aeb42c70751bb7e74900 (diff)
downloadcoreboot-b13e94c2c654bdf71ade141475f1e9f343979be2.tar.xz
nvramtool: uname in NetBSD doesnt take "-o"
see the Netbsd manual: http://netbsd.gw.com/cgi-bin/man-cgi?uname++NetBSD-current Error output needs to be redirected. Change-Id: I1853a0162e14be0ee9d7971466499af6c72b2427 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1545 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'util/nvramtool/Makefile')
-rw-r--r--util/nvramtool/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile
index 6723a487bf..fe2efa0164 100644
--- a/util/nvramtool/Makefile
+++ b/util/nvramtool/Makefile
@@ -42,7 +42,7 @@ endif
ifeq ($(OS_ARCH), NetBSD)
LDFLAGS = -l$(shell uname -p)
endif
-ifeq ($(shell uname -o), Cygwin)
+ifeq ($(shell uname -o 2>/dev/null), Cygwin)
LDFLAGS = -lioperm
CFLAGS += -D__GLIBC__
endif