summaryrefslogtreecommitdiffstats
path: root/include/bootm.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-05 10:33:39 -0700
committerTom Rini <trini@konsulko.com>2020-12-04 16:09:26 -0500
commit4ae42643d0d71dbb5af45d19fa05b7a6807150c0 (patch)
tree4289053456d189df47bd16c27fd047769e0f9b3c /include/bootm.h
parentf158ba15ee0f9f756193b60420adfdc0a9c1eb96 (diff)
downloadu-boot-4ae42643d0d71dbb5af45d19fa05b7a6807150c0.tar.gz
u-boot-4ae42643d0d71dbb5af45d19fa05b7a6807150c0.tar.xz
u-boot-4ae42643d0d71dbb5af45d19fa05b7a6807150c0.zip
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/bootm.h')
-rw-r--r--include/bootm.h11
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