aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
*/