bootm: Tidy up use of autostart env var
This has different semantics in different places. Go with the bootm method and put it in a common function so that the behaviour is consistent in U-Boot. Update the docs. To be clear, this changes the way that 'bootelf' and standalone boot work. Before, if autostart was set to "fred" or "YES", for example, they would consider that a "yes". This may change behaviour for some boards, but the only in-tree boards which mention autostart use "no" to disable it, which will still work. Signed-off-by:Simon Glass <sjg@chromium.org> Suggested-by:
Wolfgang Denk <wd@denx.de>
Showing
- boot/bootm_os.c 1 addition, 4 deletionsboot/bootm_os.c
- cmd/bootm.c 1 addition, 3 deletionscmd/bootm.c
- cmd/elf.c 1 addition, 2 deletionscmd/elf.c
- doc/usage/environment.rst 3 additions, 2 deletionsdoc/usage/environment.rst
- env/common.c 5 additions, 0 deletionsenv/common.c
- include/env.h 7 additions, 0 deletionsinclude/env.h
Please register or sign in to comment