
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 Frysingervapier@gentoo.org.
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