]> git.baikalelectronics.ru Git - uboot.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)
commitd8e40b2668d2b737e0d642d987572c984a699d3a
tree876ffd8e8541f085ed5945b3afa40b4c911bf466
parenteabbc616dcfd3bff8ce392519eb40c03fc592e51
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