1.
authorPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 23 Sep 2008 21:29:53 +0000 (21:29 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 23 Sep 2008 21:29:53 +0000 (21:29 +0000)
Preset CC to gcc in Makefile. There are some $(shell $(CC) ...)
invocations with GCC specific options, so that shouldn't hurt.

2.
Replace stdbool.h include in util/kconfig/expr.h by a custom
implementation of booleans. This is okay as these booleans are purely
internal. It's necessary because there's some disagreement between the
Solaris headers and GCC on Solaris, about when stdbool.h is appropriate.

3.
Remove stdbool.h include from util/kconfig/zconf.tab.c_shipped. This
file includes expr.h already, so it picks up the right set of
primitives, without duplicating the special case for Solaris.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3592 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

payloads/libpayload/Makefile
payloads/libpayload/util/kconfig/expr.h
payloads/libpayload/util/kconfig/zconf.tab.c_shipped

index 9254de7ad1bfeb8c0eca1cfc484c75da7b07f89f..d5b29e22f0e46a5cfa62e61fde0916578f6844c9 100644 (file)
@@ -49,6 +49,7 @@ ifneq ($(V),1)
 Q := @
 endif
 
+CC = gcc
 HOSTCC = gcc
 HOSTCXX = g++
 HOSTCFLAGS := -I$(srck) -I$(objk)
index 9d4cba1c001d9ec5f48a365a2d864e1b2f3f467a..25ec05ee3b0f68c79f02e36eed41ccdff154a472 100644 (file)
@@ -12,7 +12,12 @@ extern "C" {
 
 #include <stdio.h>
 #ifndef __cplusplus
+#ifndef __sun
 #include <stdbool.h>
+#else
+typedef short bool;
+enum { true=1, false=0};
+#endif
 #endif
 
 struct file {
index 346c4168568fdc7c993fe9c2073ba279c5ac8fa6..fa47f37133155be452f816ce006ff52b20712bcf 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stdbool.h>
 
 #define LKC_DIRECT_LINK
 #include "lkc.h"