summaryrefslogtreecommitdiff
path: root/cmd/bootstage.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-07-15 12:42:00 +0100
committerTom Rini <[email protected]>2024-07-19 16:48:07 -0600
commitb81e31a1e6c5e0b20537fa8ffba67696dec46d58 (patch)
tree32de4fc057b04eec6cb089be0cb27ce19f90d6ec /cmd/bootstage.c
parent6b8df6055ab5b37c27679a5cd8ba61f702cab120 (diff)
bootstash: Do not provide a default address for all
A valid memory location to stash bootstage information at will be architecture dependent. Move the existing defaults to the main Kconfig file for this option and set 0x0 as the default only for sandbox. Signed-off-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd/bootstage.c')
-rw-r--r--cmd/bootstage.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/bootstage.c b/cmd/bootstage.c
index c47679d69d6..8248c41ca82 100644
--- a/cmd/bootstage.c
+++ b/cmd/bootstage.c
@@ -15,6 +15,7 @@ static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
return 0;
}
+#if IS_ENABLED(CONFIG_BOOTSTAGE_STASH)
static int get_base_size(int argc, char *const argv[], ulong *basep,
ulong *sizep)
{
@@ -58,11 +59,14 @@ static int do_bootstage_stash(struct cmd_tbl *cmdtp, int flag, int argc,
return 0;
}
+#endif
static struct cmd_tbl cmd_bootstage_sub[] = {
U_BOOT_CMD_MKENT(report, 2, 1, do_bootstage_report, "", ""),
+#if IS_ENABLED(CONFIG_BOOTSTAGE_STASH)
U_BOOT_CMD_MKENT(stash, 4, 0, do_bootstage_stash, "", ""),
U_BOOT_CMD_MKENT(unstash, 4, 0, do_bootstage_stash, "", ""),
+#endif
};
/*
@@ -90,6 +94,8 @@ U_BOOT_CMD(bootstage, 4, 1, do_boostage,
"Boot stage command",
" - check boot progress and timing\n"
"report - Print a report\n"
+#if IS_ENABLED(CONFIG_BOOTSTAGE_STASH)
"stash [<start> [<size>]] - Stash data into memory\n"
- "unstash [<start> [<size>]] - Unstash data from memory"
+ "unstash [<start> [<size>]] - Unstash data from memory\n"
+#endif
);