From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Wed, 13 Jan 2021 15:24:24 +0100 Subject: [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT In-Reply-To: <20210113140233.GG19813@bill-the-cat> References: <04343af5d01a74dc9c90e7e6abb354cbcd43b687.1610540785.git.michal.simek@xilinx.com> <20210113140233.GG19813@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 13. 01. 21 15:02, Tom Rini wrote: > On Wed, Jan 13, 2021 at 01:26:27PM +0100, Michal Simek wrote: > >> CONFIG_SYS_REDUNDAND_ENVIRONMENT is changing in env_internal.h how u-boot >> works with variables. struct environment_s has one byte flags property >> which also affects ENV_SIZE macro. >> >> I have reached the case where CONFIG_ENV_IS_NOWHERE is default setup >> but custom scripts can be designed in a way that u-boot is asked to >> import/export variables from/to file which can be in certain format. >> That's why also for this configuration make sense to enable >> CONFIG_SYS_REDUNDAND_ENVIRONMENT because it depends on environment file >> format. >> >> The patch is removing dependency on this configuration to support selecting >> environment file format without any specific dependency where variables are >> stored. > > Are you importing a binary of the environment in, which was generated > with redundant env set, is what the problem is? > Yes exactly. Thanks, Michal