diff options
| author | Ying Sun <[email protected]> | 2023-06-25 16:24:47 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-07 16:25:56 -0400 |
| commit | aadc1a60694bfee09203fb30357ac9887d9691e2 (patch) | |
| tree | 37bdca7561fd8cb41756a49cf37e2637b71f043f /cmd | |
| parent | 42c0e5bb054da1437fe847bfd4063768c08d39ca (diff) | |
cmd: CONFIG_CMD_SAVES depends on CONFIG_CMD_LOADS
CONFIG_CMD_SAVES is used to enable support for the "saveenv" command
and is only implemented in cmd/load.c
when "#if defined(CONFIG_CMD_LOADS)" is met.
It is recommended to add dependency constraints to its definition.
Prevents "saveenv" command from not being supported
when "CONFIG_CMD_SAVES=y CONFIG_CMD_LOADS=n".
Suggested-by: Yanjie Ren <[email protected]>
Signed-off-by: Ying Sun <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 02e54f1e50f..c1941849f98 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1228,6 +1228,7 @@ config LOADS_ECHO config CMD_SAVES bool "saves - Save a file over serial in S-Record format" + depends on CMD_LOADS help Provides a way to save a binary file using the Motorola S-Record format over the serial line. |
