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. */