diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2013-11-26 14:57:51 +1100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2013-11-26 14:57:51 +1100 |
commit | ea9eca196d046f505741df3e6e6f60f2010edbdf (patch) | |
tree | e5b746951075e8e0e8603ab6e62f3770463b1c15 | |
parent | 2f8aa2de30d6632cf6301d29e8a17d355e388b7c (diff) | |
download | SLOF-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>
-rw-r--r-- | board-qemu/slof/qemu-bootlist.fs | 6 |
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 |