aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-16 11:45:16 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-16 11:45:16 +0000
commit4aeff4ffcfc3a8080646a197938b77c0cafbed54 (patch)
tree0fc1774ebb1ab3a8fd78f6e8c93ea7bb1259edf5 /util
parent7dcdb3051e8bc85d8841436f1e0e8c0d6e64700c (diff)
downloadcoreboot-4aeff4ffcfc3a8080646a197938b77c0cafbed54.tar.gz
coreboot-4aeff4ffcfc3a8080646a197938b77c0cafbed54.tar.xz
coreboot-4aeff4ffcfc3a8080646a197938b77c0cafbed54.zip
enable more warnings for vgabios utility, and enable some debugging
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5451 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/vgabios/Makefile12
-rw-r--r--util/vgabios/include/console/console.h1
2 files changed, 11 insertions, 2 deletions
diff --git a/util/vgabios/Makefile b/util/vgabios/Makefile
index e995f007c..ffa30a965 100644
--- a/util/vgabios/Makefile
+++ b/util/vgabios/Makefile
@@ -7,7 +7,12 @@
#
CC = gcc
-CFLAGS = -Wall -Iinclude -I../../src/devices/oprom/include/ -O2 -g
+CFLAGS = -O2 -g -fomit-frame-pointer
+CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
+CFLAGS += -Wstrict-aliasing -Wshadow -Wextra
+
+INCLUDES = -Iinclude -I../../src/devices/oprom/include/
INTOBJS = int10.o int15.o int16.o int1a.o inte6.o
X86EMUOBJS = sys.o decode.o ops.o ops2.o prim_ops.o fpu.o debug.o
@@ -29,5 +34,8 @@ clean:
rm -f *.o *~ testbios
%.o: ../../src/devices/oprom/x86emu/%.c
- $(CC) $(CFLAGS) -include stdio.h -c -o $@ $^
+ $(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
diff --git a/util/vgabios/include/console/console.h b/util/vgabios/include/console/console.h
index d63832f1e..e74cbb3dc 100644
--- a/util/vgabios/include/console/console.h
+++ b/util/vgabios/include/console/console.h
@@ -1,3 +1,4 @@
#ifndef _CONSOLE_CONSOLE_H
#define _CONSOLE_CONSOLE_H
+#define CONFIG_X86EMU_DEBUG 1
#endif