[SLOF] [PATCH] Use input-device and output-device
Alexey Kardashevskiy
aik at ozlabs.ru
Wed Oct 4 19:23:35 AEDT 2017
On 27/09/17 02:02, Laurent Vivier wrote:
> QEMU can now set environment variables from the command line (with -prom-env).
> By this means, we can set the output-device and input-device variables,
> and SLOF can read it and set stdout and stdin accordingly.
>
> Signed-off-by: Laurent Vivier <lvivier at redhat.com>
> ---
Thanks, applied.
> board-qemu/slof/OF.fs | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/board-qemu/slof/OF.fs b/board-qemu/slof/OF.fs
> index 0169c35..4e04b84 100644
> --- a/board-qemu/slof/OF.fs
> +++ b/board-qemu/slof/OF.fs
> @@ -257,6 +257,20 @@ romfs-base 400000 0 ' claim CATCH IF ." claim failed!" cr 2drop THEN drop
> THEN
> THEN
> THEN
> +
> + s" input-device" evaluate dup IF
> + ." User selected input-device console: " 2dup type cr
> + input
> + ELSE
> + 2drop
> + THEN
> +
> + s" output-device" evaluate dup IF
> + ." User selected output-device console: " 2dup type cr
> + output
> + ELSE
> + 2drop
> + THEN
> ;
> set-default-console
>
>
--
Alexey
More information about the SLOF
mailing list