From cbca308a056be421566803f241e6d7d7f0e32286 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Tue, 20 Jan 2026 17:20:30 +0100 Subject: [PATCH] include/console/console.h: Enable console for ENV_TEST `tests/stubs/console.c` also implements printk for our test functions. Change-Id: Ic6ad8832515b90f4706cb9c5b9d9525a25485992 Signed-off-by: Maximilian Brune Reviewed-on: https://review.coreboot.org/c/coreboot/+/90831 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/include/console/console.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/console/console.h b/src/include/console/console.h index 8d1a5c5dde..927b1d6ef0 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -45,7 +45,8 @@ static inline int get_console_loglevel(void) ((ENV_BOOTBLOCK && CONFIG(BOOTBLOCK_CONSOLE)) || \ (ENV_POSTCAR && CONFIG(POSTCAR_CONSOLE)) || \ ENV_SEPARATE_VERSTAGE || ENV_SEPARATE_ROMSTAGE || ENV_RAMSTAGE || \ - ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI))) + ENV_LIBAGESA || (ENV_SMM && CONFIG(DEBUG_SMI)) || \ + ENV_TEST) #if __CONSOLE_ENABLE__ int get_log_level(void);