summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-08 23:47:49 -0700
committerSimon Glass <sjg@chromium.org>2015-11-19 20:27:50 -0700
commit61b4d3558e9236ee9554a0da65f8ce139cbd3560 (patch)
tree742d86d45aaba821d08062d13a881c923ed62e35
parent9854a8748c8fdd69784a1fa1c4758c696621c88d (diff)
downloadu-boot-imx-61b4d3558e9236ee9554a0da65f8ce139cbd3560.zip
u-boot-imx-61b4d3558e9236ee9554a0da65f8ce139cbd3560.tar.gz
u-boot-imx-61b4d3558e9236ee9554a0da65f8ce139cbd3560.tar.bz2
sandbox: Enable console recording and silent console
Allow console recording so that tests can use it. Also allow the console output to be suppressed, to reduce test output 'noise'. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--configs/sandbox_defconfig3
-rw-r--r--include/configs/sandbox.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 0b1b41c..4053848 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -1,3 +1,4 @@
+CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_PCI=y
CONFIG_DEFAULT_DEVICE_TREE="sandbox"
CONFIG_FIT=y
@@ -16,6 +17,8 @@ CONFIG_CMD_PMIC=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_TPM=y
CONFIG_CMD_TPM_TEST=y
+CONFIG_CONSOLE_RECORD=y
+CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
CONFIG_OF_CONTROL=y
CONFIG_OF_HOSTFILE=y
CONFIG_REGMAP=y
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index b0fe501..fb1bfb7 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -65,6 +65,7 @@
#define CONFIG_SYS_HUSH_PARSER
#define CONFIG_SYS_LONGHELP /* #undef to save memory */
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
+#define CONFIG_SILENT_CONSOLE
/* Print Buffer Size */
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)