[U-Boot] [PATCH] tools/envcrc: fix compile breakage

Wolfgang Denk wd at denx.de
Mon Nov 28 09:18:07 CET 2011


Dear Igor Grinberg,

In message <1322467058-30532-1-git-send-email-grinberg at compulab.co.il> you wrote:
> When ENV_IS_EMBEDDED is not set, but CONFIG_BUILD_ENVCRC is set,
> the environment.h file does not get included resulting in unrecognized
> env_t type.
> Fix this by moving the include directive.

...
> -extern uint32_t crc32 (uint32_t, const unsigned char *, unsigned int);
...
> +extern uint32_t crc32 (uint32_t, const unsigned char *, unsigned int);

Also, instead of moving this line, you should rather insert something
like "#include <u-boot/crc.h>" ...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Too much of anything, even love, isn't necessarily a good thing.
	-- Kirk, "The Trouble with Tribbles", stardate 4525.6


More information about the U-Boot mailing list