From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Mon, 28 Nov 2011 10:53:37 +0200 Subject: [U-Boot] [PATCH] tools/envcrc: fix compile breakage In-Reply-To: <20111128081807.8C9AC16FDDD6@gemini.denx.de> References: <201111251612.34081.vapier@gentoo.org> <1322467058-30532-1-git-send-email-grinberg@compulab.co.il> <20111128081807.8C9AC16FDDD6@gemini.denx.de> Message-ID: <4ED34C11.1050903@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, On 11/28/11 10:18, Wolfgang Denk wrote: > Dear Igor Grinberg, > > In message <1322467058-30532-1-git-send-email-grinberg@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 " ... I had no intend to clean this file, but I can do this change in a separate patch. -- Regards, Igor.