vgabios: fix compilation

This utility links in coreboot code, and has been broken for a long
time. These changes get it to compile again.

Change-Id: I69445a8b3cbfc9a2b560c68b8de2e080837ec502
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/10112
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Stefan Reinauer 2015-05-05 13:35:18 -07:00
parent 94a0ae1860
commit d6fac38d77
2 changed files with 20 additions and 2 deletions

View File

@ -12,7 +12,7 @@ CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
CFLAGS += -Wstrict-aliasing -Wshadow -Wextra
INCLUDES = -Iinclude -I../../src/device/oprom/include/
INCLUDES = -Iinclude -I../../src/device/oprom/include/ -I../../src --include include/stdtypes.h
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
@ -33,7 +33,7 @@ helper_exec.o: helper_exec.c test.h
clean:
rm -f *.o *~ testbios
%.o: ../../src/devices/oprom/x86emu/%.c
%.o: ../../src/device/oprom/x86emu/%.c
$(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
%.o: %.c

View File

@ -0,0 +1,18 @@
#ifndef _STDTYPES_H
#define _STDTYPES_H
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef uint8_t bool;
#define true 1
#define false 0
#endif /* _STDTYPES_H */