]> git.baikalelectronics.ru Git - uboot.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)
commit5c2aca7ff00eef9329be34374ef042a4ca5fa736
tree37bdca7561fd8cb41756a49cf37e2637b71f043f
parente161168a77975dc7c7e5ce6809850f2e4a6ba632
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