commands: boot: refactor boot entry creation to use iterators
We currently create all boot entries before attempting boot. This is
less than optimal, because this may involve probing devices that won't
be used for actual boot.

In preparation for changing this, refactor the code, so we only have one
loop we need to touch.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ddfed65 commit 4c368ee077b8918bf68979e8079439fcf55ac13f
@Ahmad Fatoum Ahmad Fatoum authored on 12 Feb 2020
Sascha Hauer committed on 14 Feb 2020
Showing 1 changed file
View
commands/boot.c