diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-05 20:33:39 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-12-05 00:09:26 +0300 |
commit | 4ae42643d0d71dbb5af45d19fa05b7a6807150c0 (patch) | |
tree | 4289053456d189df47bd16c27fd047769e0f9b3c /include | |
parent | f158ba15ee0f9f756193b60420adfdc0a9c1eb96 (diff) | |
download | u-boot-4ae42643d0d71dbb5af45d19fa05b7a6807150c0.tar.xz |
bootm: Update fixup_silent_linux() to return an error
At present this function fails silently on error. Update it to produce
an error code. Report this error to the user and abort the boot, since it
likely will prevent a successful start.
No tests are added at this stage, since additional refactoring is taking
place in subsequent patches.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bootm.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/bootm.h b/include/bootm.h index 6d675e6455..438829af0f 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -85,7 +85,14 @@ void arch_preboot_os(void); */ void board_preboot_os(void); -/* Adjust the 'bootargs' to ensure that Linux boots silently, if required */ -void fixup_silent_linux(void); +/* + * fixup_silent_linux() - Process fix-ups for the command line + * + * Updates the 'bootargs' envvar as required. This handles making Linux boot + * silently if requested ('silent_linux' envvar) + * + * @return 0 if OK, -ENOMEM if out of memory + */ +int fixup_silent_linux(void); #endif |