aboutsummaryrefslogtreecommitdiff
path: root/board-qemu/slof/qemu-bootlist.fs
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2013-11-26 14:57:51 +1100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2013-11-26 14:57:51 +1100
commitea9eca196d046f505741df3e6e6f60f2010edbdf (patch)
treee5b746951075e8e0e8603ab6e62f3770463b1c15 /board-qemu/slof/qemu-bootlist.fs
parent2f8aa2de30d6632cf6301d29e8a17d355e388b7c (diff)
downloadSLOF-ea9eca196d046f505741df3e6e6f60f2010edbdf.zip
SLOF-ea9eca196d046f505741df3e6e6f60f2010edbdf.tar.gz
SLOF-ea9eca196d046f505741df3e6e6f60f2010edbdf.tar.bz2
boot: enable support for bootindexqemu-slof-20131126
QEMU supports a bootindex property for every device in the command line. With the respective support from the QEMU side, this change is enough to make SLOF go through the list and try to boot. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu/slof/qemu-bootlist.fs')
-rw-r--r--board-qemu/slof/qemu-bootlist.fs6
1 files changed, 6 insertions, 0 deletions
diff --git a/board-qemu/slof/qemu-bootlist.fs b/board-qemu/slof/qemu-bootlist.fs
index 7e9482d..4778e16 100644
--- a/board-qemu/slof/qemu-bootlist.fs
+++ b/board-qemu/slof/qemu-bootlist.fs
@@ -26,6 +26,12 @@ defer add-boot-device
;
: qemu-read-bootlist ( -- )
+ \ See if QEMU has set exact boot device list
+ " qemu,boot-list" get-chosen IF
+ s" boot-device" $setenv
+ EXIT
+ THEN
+
0 0 set-boot-device
" qemu,boot-device" get-chosen not IF