diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-05 20:33:38 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-12-05 00:09:26 +0300 |
commit | f158ba15ee0f9f756193b60420adfdc0a9c1eb96 (patch) | |
tree | 7fa87c022e1258306c4c5947e661bcf039bfe7e7 /include | |
parent | 96434a76fd254248ded19e95dc967d28e65a5edf (diff) | |
download | u-boot-f158ba15ee0f9f756193b60420adfdc0a9c1eb96.tar.xz |
bootm: Add tests for fixup_silent_linux()
This function currently has no tests. Export it so that we can implement
a simple test on sandbox. Use IS_ENABLED() to remove the unused code,
instead #ifdef.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bootm.h | 3 | ||||
-rw-r--r-- | include/test/suites.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h index a812a6bf24..6d675e6455 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -85,4 +85,7 @@ 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); + #endif diff --git a/include/test/suites.h b/include/test/suites.h index 5c97846e7f..52e8fc8155 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -26,6 +26,7 @@ int cmd_ut_category(const char *name, const char *prefix, struct unit_test *tests, int n_ents, int argc, char *const argv[]); +int do_ut_bootm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc, |