summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-02-11 01:56:38 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-09 22:21:31 +0100
commit408ebe6ad06d9929aed4681258cb4928387b83eb (patch)
treeeb49992aa5d1c089490a97444a60b160fd459b19 /src
parentfcf3d604759e50c381555d0d64c26155fe80a19b (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/include/console/early_print.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/console/early_print.h b/src/include/console/early_print.h
index cbc9b4616a..f719e7106e 100644
--- a/src/include/console/early_print.h
+++ b/src/include/console/early_print.h
@@ -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.
*/