From ea9eca196d046f505741df3e6e6f60f2010edbdf Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Tue, 26 Nov 2013 14:57:51 +1100 Subject: boot: enable support for bootindex 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 --- board-qemu/slof/qemu-bootlist.fs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board-qemu/slof/qemu-bootlist.fs') 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 -- cgit v1.1