From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Fri, 31 Dec 2010 11:58:19 +0100 Subject: [U-Boot] Recent changes break our update scripts, because of getenv_yesno() In-Reply-To: <4D1DB35A.3090105@emk-elektronik.de> References: <4D1DB183.9000401@emk-elektronik.de> <4D1DB35A.3090105@emk-elektronik.de> Message-ID: <4D1DB74B.9000901@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/31/2010 11:41 AM, Reinhard Meyer wrote: > /* Loading ok, check if we should attempt an auto-start */ > - if (((s = getenv("autostart")) != NULL) && (strcmp(s,"yes") == 0)) { > + if (getenv_yesno("autostart")) { > char *local_args[2]; > local_args[0] = argv[0]; > local_args[1] = NULL; > > Originally, a missing env var resulted in FALSE, with the helper function it > results in TRUE!! Thanks, this explains why it happens ! We should check again for a missing env var. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================