]> git.ipfire.org Git - people/ms/u-boot.git/commit - common/board_f.c
console: Add a console buffer
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2015 06:47:48 +0000 (23:47 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:27:50 +0000 (20:27 -0700)
commit9854a8748c8fdd69784a1fa1c4758c696621c88d
treedf09215e384695c184221ab9e3f4a295ef15efeb
parentb7b65090b29e6bc133c7922f8290c1e2f75b064a
console: Add a console buffer

It is useful to be able to record console output and provide console input
via a buffer. This provides sandbox with the ability to run a command and
check its output. If the console is set to silent then no visible output
is generated.

This also provides a means to fix the problem where tests produce unwanted
output, such as errors or warnings. This can be confusing. We can instead
set the console to silent and record this output. It can be checked later
in the test if required.

It is possible that this may prove useful for non-test situations. For
example the console output may be suppressed for normal operations, but
recorded and stored for access by the OS. That feature is not implemented
at present.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/Kconfig
common/board_f.c
common/board_r.c
common/console.c
include/asm-generic/global_data.h
include/console.h