]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: CONFIG_CMD_SAVES depends on CONFIG_CMD_LOADS
authorYing Sun <sunying@nj.iscas.ac.cn>
Sun, 25 Jun 2023 08:24:47 +0000 (16:24 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jul 2023 20:25:56 +0000 (16:25 -0400)
commitaadc1a60694bfee09203fb30357ac9887d9691e2
tree37bdca7561fd8cb41756a49cf37e2637b71f043f
parent42c0e5bb054da1437fe847bfd4063768c08d39ca
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 <renyanjie01@gmail.com>
Signed-off-by: Ying Sun <sunying@nj.iscas.ac.cn>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/Kconfig