env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check
authorTom Rini <trini@konsulko.com>
Tue, 19 Nov 2019 01:02:07 +0000 (20:02 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 20 Nov 2019 23:31:24 +0000 (18:31 -0500)
commita8992e788aba46f6f129af3111682be86236074f
treeab5b83a45f55ad016ef020320bb2960cf7337f27
parent3eee45d93681a9c6bb67b73068da4dc179ae4e7f
env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check

We have CONFIG_ENV_SIZE_IS_REDUND but don't really use it.  We have one
board where we can simply multiple CONFIG_ENV_SIZE by two for the same
result.  The other place where we could but were not previously using
this is for where env_internal.h checks for if we should set
ENV_IS_EMBEDDED.  This seems like the most likely use, historically, of
the variable, but it was not used.  Add logic to check for this now.

Cc: Wolfgang Denk <wd@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
71 files changed:
env/Kconfig
env/flash.c
env/mmc.c
env/nand.c
env/sata.c
include/configs/MPC8308RDB.h
include/configs/MPC8313ERDB_NAND.h
include/configs/MPC8349EMDS.h
include/configs/MPC8349EMDS_SDRAM.h
include/configs/MigoR.h
include/configs/TQM834x.h
include/configs/UCP1020.h
include/configs/am335x_shc.h
include/configs/apf27.h
include/configs/apx4devkit.h
include/configs/armadillo-800eva.h
include/configs/bk4r1.h
include/configs/blanche.h
include/configs/caddy2.h
include/configs/condor.h
include/configs/dh_imx6.h
include/configs/display5.h
include/configs/draco.h
include/configs/eagle.h
include/configs/edb93xx.h
include/configs/etamin.h
include/configs/flea3.h
include/configs/gardena-smart-gateway-mt7688.h
include/configs/gazerbeam.h
include/configs/gw_ventana.h
include/configs/hrcon.h
include/configs/ids8313.h
include/configs/imx27lite-common.h
include/configs/km/km-mpc83xx.h
include/configs/km/km_arm.h
include/configs/kp_imx53.h
include/configs/m53menlo.h
include/configs/mccmon6.h
include/configs/mpc8308_p1m.h
include/configs/mx28evk.h
include/configs/mx35pdk.h
include/configs/novena.h
include/configs/pcm052.h
include/configs/pcm058.h
include/configs/pfla02.h
include/configs/platinum.h
include/configs/rastaban.h
include/configs/rcar-gen2-common.h
include/configs/rcar-gen3-common.h
include/configs/sbc8349.h
include/configs/sh7752evb.h
include/configs/sh7753evb.h
include/configs/sh7757lcr.h
include/configs/sh7763rdp.h
include/configs/sksimx6.h
include/configs/socfpga_vining_fpga.h
include/configs/socrates.h
include/configs/strider.h
include/configs/tam3517-common.h
include/configs/thuban.h
include/configs/titanium.h
include/configs/vcoreiii.h
include/configs/vct.h
include/configs/ve8313.h
include/configs/vining_2000.h
include/configs/vme8349.h
include/configs/woodburn_common.h
include/configs/x600.h
include/env_internal.h
scripts/config_whitelist.txt
tools/envcrc.c