All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT
Date: Wed, 13 Jan 2021 15:24:24 +0100	[thread overview]
Message-ID: <e8e2727c-16ec-e26c-c380-4718a0f9ca92@xilinx.com> (raw)
In-Reply-To: <20210113140233.GG19813@bill-the-cat>



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

  reply	other threads:[~2021-01-13 14:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-13 12:26 [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT Michal Simek
2021-01-13 14:02 ` Tom Rini
2021-01-13 14:24   ` Michal Simek [this message]
2021-01-13 14:43     ` Tom Rini
2021-01-13 14:50       ` Michal Simek
2021-01-14 19:42         ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8e2727c-16ec-e26c-c380-4718a0f9ca92@xilinx.com \
    --to=michal.simek@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.