Patchwork util/vgabios without own copy of x86emu

login
register
about
Submitter Stefan Reinauer
Date 2010-03-21 22:33:25
Message ID <4BA69EB5.5060304@coresystems.de>
Download mbox | patch
Permalink /patch/1112/
State Accepted
Headers show

Comments

Stefan Reinauer - 2010-03-21 22:33:25
On 3/21/10 11:17 PM, Stefan Reinauer wrote:
> This patch makes util/vgabios use the coreboot version of x86emu and allows 
>
> svn rm util/vgabios/x86emu
>
> The next step would be to make it use YABEL, too. 
>
> Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
>   
It also needs this guard added to the coreboot x86emu copy to make sure
the printf redefine only occurs in coreboot:

Patch

--- src/devices/oprom/x86emu/debug.h    (revision 5263)
+++ src/devices/oprom/x86emu/debug.h    (working copy)
@@ -42,8 +42,10 @@ 
 
 /*---------------------- Macros and type definitions
----------------------*/
 
+#ifdef CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 /* printf is not available in coreboot... use printk */
 #define printf(x...) printk(BIOS_DEBUG, x)
+#endif
 
 /* checks to be enabled for "runtime" */