[SLOF] [PATCH] Use input-device and output-device
Nikunj A Dadhania
nikunj at linux.vnet.ibm.com
Wed Sep 27 18:44:31 AEST 2017
Laurent Vivier <lvivier at redhat.com> writes:
> 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>
Tested-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
> ---
> 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
>
> --
> 2.13.5
>
> _______________________________________________
> SLOF mailing list
> SLOF at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/slof
More information about the SLOF
mailing list