From: Mike Frysinger Date: Fri, 14 Oct 2011 13:11:53 -0400 Subject: [U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number In-Reply-To: References: <1318552994-6653-1-git-send-email-sjg@chromium.org> <4E97D326.3030009@emk-elektronik.de> Message-ID: <201110141311.55171.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 14 October 2011 10:31:12 Simon Glass wrote: > On Thu, Oct 13, 2011 at 11:13 PM, Reinhard Meyer wrote: > >> Several places in U-Boot's board files can make use of a function like > >> this, > >> so this patch series creates the function, and changes the board files > >> to use it. > >> > >> As suggested by Mike Frysinger. > >> > >> > >> Simon Glass (10): > >> Add getenv_int() to read an integer from an environment variable > > > > Just a question (I cannot dig deep into this): > > > > Since getenv_* might be used before relocation (it is for baudrate, am I > > right?), > > and I cannot see how getenv_int() would work before relocation. > > From what I can tell the existing getenv() function deals with this > automatically by looking at the global flags. yep, and that should be sufficient. in the pre-relocation stages, you can only have one active getenv() at a time, but that isn't anything new, and in this particular case, it's fine. if people need an explicit getenv_ulong_r() in the future, we can wait for someone else to propose that. but i think it unlikely. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111014/df45a9d7/attachment.pgp