From: Robert P. J. Day Date: Sat, 23 Jul 2016 06:18:04 -0400 (EDT) Subject: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h In-Reply-To: <20160722220136.5F967100539@atlas.denx.de> References: <20160722220136.5F967100539@atlas.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 23 Jul 2016, Wolfgang Denk wrote: > Dear "Robert P. J. Day", > > In message 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 ========================================================================