Skip to content

Add getenv_ulong to return an environment var as a number

Mike Frysinger u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 of 10 patches 0 repliesNew

4 of 10 patches are in this archive. The cover letter announces 10.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Add getenv_int() to read an integer from an environment variable+0 -01 reply
1/10Add getenv_int() to read an integer from an environment variable+0 -01 reply
1/10Add getenv_int() to read an integer from an environment variable+0 -01 reply
4/10blackfin: Use getenv_ulong() in place of getenv(), strtoul+0 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMike Frysinger
1/10
1/10
1/10
4/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/10] Add getenv_ulong to return an environment var as a number
Quoted 12 lines · On Friday 14 October 2011 10:31:12 Simon Glass wrote:
Quoted 11 lines · Reinhard Meyer
Quoted 10 lines

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<[email protected]>.

Simon Glass (10):
Add getenv_int() to read an integer from an environment variable

Quoted 8 lines
Quoted 5 lines

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