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:
parent
fcf3d60475
commit
408ebe6ad0
|
@ -18,11 +18,14 @@
|
||||||
#ifndef __CONSOLE_EARLY_PRINT_H_
|
#ifndef __CONSOLE_EARLY_PRINT_H_
|
||||||
#define __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/console.h>
|
||||||
#include <console/streams.h>
|
#include <console/streams.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
|
||||||
#if defined(__ROMCC__)
|
|
||||||
/* While in romstage, console loglevel is built-time constant.
|
/* While in romstage, console loglevel is built-time constant.
|
||||||
* With ROMCC we inline this test with help from preprocessor.
|
* With ROMCC we inline this test with help from preprocessor.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue