console: Fix broken early_print.h include guards

Make compilation fail if this is included in non-romcc compiles.
I am a bit surprised that this ever compiled.

Change-Id: I8dfc1229681819d2381821a0195a89b44dd76b6a
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/8420
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Stefan Reinauer 2015-02-11 01:56:38 +01:00
parent fcf3d60475
commit 408ebe6ad0
1 changed files with 4 additions and 1 deletions

View File

@ -18,11 +18,14 @@
#ifndef __CONSOLE_EARLY_PRINT_H_
#define __CONSOLE_EARLY_PRINT_H_
#if !defined(__ROMCC__)
#error "Don't include early_print.h"
#endif
#include <console/console.h>
#include <console/streams.h>
#include <console/loglevel.h>
#if defined(__ROMCC__)
/* While in romstage, console loglevel is built-time constant.
* With ROMCC we inline this test with help from preprocessor.
*/