diff options
author | Laurent Vivier <lvivier@redhat.com> | 2017-09-26 18:02:01 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-10-04 17:49:04 +1100 |
commit | ea31295cf36598852b8ffea0a4f212625878f365 (patch) | |
tree | d4c23b2c26a88efd5c316567e61693f23e28362d | |
parent | 3beb9c32d45fc4a0d69e6c84911c4521be272f18 (diff) | |
download | SLOF-ea31295cf36598852b8ffea0a4f212625878f365.zip SLOF-ea31295cf36598852b8ffea0a4f212625878f365.tar.gz SLOF-ea31295cf36598852b8ffea0a4f212625878f365.tar.bz2 |
Use input-device and output-device
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@redhat.com>
Tested-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r-- | board-qemu/slof/OF.fs | 14 |
1 files changed, 14 insertions, 0 deletions
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 |