]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: Rework ENV_IS_EMBEDDED and related logic slightly
authorTom Rini <trini@konsulko.com>
Fri, 2 Dec 2022 21:42:17 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 15:31:47 +0000 (10:31 -0500)
commit6bd2372094ab4827547ec0d3e5a258b72810cafd
tree876ffd8e8541f085ed5945b3afa40b4c911bf466
parent2440b5bb523b004af43a1090e1a4134231702416
env: Rework ENV_IS_EMBEDDED and related logic slightly

- Drop CONFIG_BUILD_ENVCRC as this is never set directly but instead
  means ENV_IS_EMBEDDED, so reference that in code and rename the Makefile
  usage to BUILD_ENVCRC.
- Remove extra-$(CONFIG_ENV_IS_EMBEDDED) line as it could never be true,
  and likely why there is an extra- line for CONFIG_ENV_IS_IN_FLASH (the
  only use case today of embedded environments).
- With these slight changes we can then see that using the calculated
  symbol of ENV_IS_EMBEDDED is the right thing to use in any code which
  needs to know this situation and can remove CONFIG_ENV_IS_EMBEDDED
  entirely.

Signed-off-by: Tom Rini <trini@konsulko.com>
README
env/Makefile
env/embedded.c
include/env_internal.h
tools/Makefile
tools/envcrc.c