cmd: Handle CONFIG_(SPL_|TPL_)ENV_SUPPORT for toggling nvedit object
PATCH v2 1/1 cmd: Handle CONFIG_(SPL_|TPL_)ENV_SUPPORT for toggling nvedit object
When CONFIG_SPL_ENV_SUPPORT is disabled, nvedit was still being included as part of the build. Use the CONFIG_ENV_SUPPORT, CONFIG_SPL_ENV_SUPPORT or CONFIG_TPL_ENV_SUPPORT values to enable/disable the inclusion of nvedit.
---
Changes in v2:
* Changed $(SPL_) to $(SPL_TPL_) to cover CONFIG_TPL_ENV_SUPPORT
--- cmd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/Makefile +1 -1
@@ -186,7 +186,7 @@ endif # !CONFIG_SPL_BUILD obj-$(CONFIG_$(SPL_)CMD_TLV_EEPROM) += tlv_eeprom.o # core command -obj-y += nvedit.o +obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += nvedit.o obj-$(CONFIG_TI_COMMON_CMD_OPTIONS) += ti/
---
2.24.1
PATCH v2 1/1 cmd: Handle CONFIG_(SPL_|TPL_)ENV_SUPPORT for toggling nvedit object
Dear Nathan,
Quoted 4 lines · In message <[email protected]> you wrote:
When
CONFIG_SPL_ENV_SUPPORTis disabled, nvedit was still being included as part of the build. Use theCONFIG_ENV_SUPPORT,CONFIG_SPL_ENV_SUPPORTorCONFIG_TPL_ENV_SUPPORTvalues to enable/disable the inclusion of nvedit.
Why should the availability of these commands depend on any of these settings? I think this is wrong - whether someone wants to have environment commands in SPL or TPM is an independent decision. You must not dictate it in such a way for all users.
Thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Experience is that marvelous thing that enable you to recognize a mistake when you make it again. - Franklin P. Jones
PATCH v2 1/1 cmd: Handle CONFIG_(SPL_|TPL_)ENV_SUPPORT for toggling nvedit object
Quoted 9 lines · Wolfgang Denk
Dear Nathan,
Quoted 4 lines · In message <[email protected]> you wrote:
When
CONFIG_SPL_ENV_SUPPORTis disabled, nvedit was still being included as part of the build. Use theCONFIG_ENV_SUPPORT,CONFIG_SPL_ENV_SUPPORTorCONFIG_TPL_ENV_SUPPORTvalues to enable/disable the inclusion of nvedit.
Quoted 4 lines
Why should the availability of these commands depend on any of these settings? I think this is wrong - whether someone wants to have environment commands in SPL or TPM is an independent decision. You must not dictate it in such a way for all users.
This file is dependent on code from env/, specifically code that is conditional on the various ENV_SUPPORT configs. As the underlying compilation issue stems from nvedit providing what appears to be common environment code (e.g. env_get), it made sense to have nvedit conditional on the same config.
Regards,
Nathan