[coreboot] [PATCH] libpayload: fix VGA and serial IO breakage

Ulf Jordan jordan at chalmers.se
Sun Aug 10 11:56:14 CEST 2008


Since r3482 I have not had any VGA or serial IO from libpayload. The 
reason seems to be that the CONFIG_ macros generated by kconfig are never 
made available to the C source files during compilation. Before r3482 the 
CONFIG_ macros were obtained by including autoconf.h in libpayload.h.

In the attached patch, config.h from the new kconfig is included in 
libpayload.h, but I'm not quite sure if this is the appropriate place.

Compile tested against libpayload+coreinfo svn HEAD. Runtime tested with 
libpayload+coreinfo+coreboot-v3 in QEMU.

-------------- next part --------------
Fix undefined defines resulting from r3482, which led to libpayload
lacking output functionality.

Signed-off-by: Ulf Jordan <jordan at chalmers.se>

Index: libpayload/include/libpayload.h
--- libpayload/include/libpayload.h	(revision 3493)
+++ libpayload/include/libpayload.h	(arbetskopia)
@@ -30,6 +30,7 @@
 #ifndef _LIBPAYLOAD_H
 #define _LIBPAYLOAD_H
+#include <config.h>
 #include <stddef.h>
 #include <arch/types.h>
 #include <arch/io.h>

More information about the coreboot mailing list