From 408ebe6ad06d9929aed4681258cb4928387b83eb Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 11 Feb 2015 01:56:38 +0100 Subject: console: Fix broken early_print.h include guards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/8420 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc Reviewed-by: Kyösti Mälkki Reviewed-by: Paul Menzel --- src/include/console/early_print.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') 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 #include #include -#if defined(__ROMCC__) /* While in romstage, console loglevel is built-time constant. * With ROMCC we inline this test with help from preprocessor. */ -- cgit v1.2.3