[SLOF] [PATCH] Use input-device and output-device
Laurent Vivier
lvivier at redhat.com
Wed Sep 27 02:02:01 AEST 2017
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>
---
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
More information about the SLOF
mailing list