aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-05-08 17:15:36 +0000
committerStefan Reinauer <stepan@openbios.org>2010-05-08 17:15:36 +0000
commitc53d1f341513cb21d57e39c575553fef61ccab6a (patch)
treee518541815d107cc84e121db4a760a64a91177a0
parent2196a0a47a2ee3688b13408a1ac187dbc8aa5d66 (diff)
downloadcoreboot-c53d1f341513cb21d57e39c575553fef61ccab6a.tar.gz
coreboot-c53d1f341513cb21d57e39c575553fef61ccab6a.tar.xz
coreboot-c53d1f341513cb21d57e39c575553fef61ccab6a.zip
Patrick Georgi wrote:
Given that this is exclusively used for checking for mingw and cygwin (both support this), at most this requires routing the error message to /dev/null. And rename the variable so it's not used for any non-windows purpose. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5531 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 25972ffd0..cc3eb4ea4 100644
--- a/Makefile
+++ b/Makefile
@@ -368,14 +368,15 @@ include util/kconfig/Makefile
$(obj)/ldoptions: $(obj)/config.h
awk '/^#define ([^"])* ([^"])*$$/ {gsub("\\r","",$$3); print $$2 " = " $$3 ";";}' $< > $@
-_OS=$(shell uname -o)
+_WINCHECK=$(shell uname -o 2> /dev/null)
STACK=
-ifeq ($(_OS),Msys)
+ifeq ($(_WINCHECK),Msys)
STACK=-Wl,--stack,16384000
endif
-ifeq ($(_OS),Cygwin)
+ifeq ($(_WINCHECK),Cygwin)
STACK=-Wl,--stack,16384000
endif
+
$(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c
@printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n"
@# Note: Adding -O2 here might cause problems. For details see: