[U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h
Robert P. J. Day
rpjday at crashcourse.ca
Sat Jul 23 12:18:04 CEST 2016
On Sat, 23 Jul 2016, Wolfgang Denk wrote:
> Dear "Robert P. J. Day",
>
> In message <alpine.LFD.2.20.1607221529190.7337 at localhost.localdomain> you wrote:
> >
> > never embarrassed to make a fool of myself, i have to admit that,
> > while crawling through examples of u-boot boards that define dual
> > partitions, i am confused by the following in
> > include/configs/taurus.h (only some lines reproduced):
... snip ..
> So the code would run the "upgrade_available" _command_ as part of
> the command sequences stored in the flash_nfs, flash_self resp.
> flash_self_test environment variables.
>
> Note that it has to be a (builtin) command, as a variable reference
> would require a "$upgrade_available".
>
> The "upgrade_available" is a board-specific command, implemented in
> board/siemens/taurus/taurus.c, function do_upgrade_available().
... more snip ...
yes, my confusion was based on that i had no idea there was an
"upgrade_available" builtin command defined in taurus.c (i was looking
only at the header file at the time), in addition to the same-named
variable. as soon as you pointed that out, it all fell into place.
so i'm good, and it all makes sense. thanks muchly.
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