From 252111d4333f87523e0feb0df1d4f4078a4d8b9a Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 1 May 2012 16:53:22 -0700 Subject: Don't include console.h in microcode.c when compiling with ROMCC If microcode.c is built by romcc, this indicates that we are running microcode updates in the bootblock (e.g. before enabling cache as ram). In this case we did not enable any consoles yet, so we don't output anything. This patch removes inclusion of the unnecessary console/console.h for that case, which was breaking with certain configurations. Change-Id: Iebb57794d7b1e84cac253d249d47b88de4dd28a3 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/988 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/cpu/intel/microcode/microcode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu/intel/microcode') diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index 1511798f66..ae1c26a4b5 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -20,7 +20,9 @@ /* Microcode update for Intel PIII and later CPUs */ #include +#if !defined(__ROMCC__) #include +#endif #include #include #include -- cgit v1.2.3