[U-Boot] Recent changes break our update scripts, because of getenv_yesno()

Reinhard Meyer u-boot at emk-elektronik.de
Fri Dec 31 11:33:39 CET 2010


Hello,

in common/image.c:


int getenv_yesno (char *var)
{
	char *s = getenv (var);
	return (s && (*s == 'n')) ? 0 : 1;
}

Is that supposed to return TRUE when the env variable does NOT exist?

Because each TFTP/USB/whatever load of an image will automatically start it!

(and why is such a generic function in image.c?)

Best Regards,
Reinhard


More information about the U-Boot mailing list