[U-Boot] recommended place to add some custom settings to u-boot environment?

Robert P. J. Day rpjday at crashcourse.ca
Wed Sep 14 17:07:34 CEST 2016


On Wed, 14 Sep 2016, Wolfgang Denk wrote:

> Dear Robert,
>
> In message <alpine.LFD.2.20.1609140935240.5661 at ca624034.mitel.com> you wrote:
> >
> > > It will not realy work.  "space-separated" is not good enough as a
> > > space character is a legal part of the value of an environment
> > > variable.  You would need to tweak the import code.
> >
> >   but himport_r() explicitly takes a separator character, and i can
> > guarantee the strings being "imported" have no embedded space
> > characters in their values. so as long as that's the case, shouldn't
> > himport_r() properly handle that given a separator of space?
>
> Well, yes, but it sounds a bit fragile to me.  Experience tells me
> that very soon someone _will_ use a space in a variable.

  in this case, no ... it's legacy info that will never, ever change
at this point.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list