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>
This commit is contained in:
parent
f78c7007c2
commit
b13e94c2c6
|
@ -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
|
||||
|
|
|
@ -24,7 +24,7 @@ NVRAMTOOLFLAGS := -I$(top)/util/nvramtool
|
|||
ifeq ($(OS_ARCH), NetBSD)
|
||||
NVRAMTOOLLDLFLAGS = -l$(shell uname -p)
|
||||
endif
|
||||
ifeq ($(shell uname -o), Cygwin)
|
||||
ifeq ($(shell uname -o 2>/dev/null), Cygwin)
|
||||
NVRAMTOOLFLAGS += -O2 -g -Wall -W -D__GLIBC__
|
||||
HOSTCFLAGS =
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue