]> git.sur5r.net Git - u-boot/commit
main: Make the execution path a little clearer in main.c
authorSimon Glass <sjg@chromium.org>
Fri, 11 Apr 2014 02:01:35 +0000 (20:01 -0600)
committerTom Rini <trini@ti.com>
Thu, 29 May 2014 21:52:03 +0000 (17:52 -0400)
commitaffb215626f91e717088a27081d24c473895d47d
tree9ced673b20b48fb9a70253860e5cc6b7d9c79a29
parentc1bb2cd0b6a3d1b152be3686601234b3a363772b
main: Make the execution path a little clearer in main.c

bootdelay_process() never returns in some circumstances, whichs makes the
control flow confusing. Change it so that the decision about how to execute
the boot command is made in the main_loop() code, so it is easier to follow.
Move CLI stuff to cli.c.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/autoboot.c
common/cli.c
common/main.c
include/autoboot.h
include/cli.h