From: Tom Rini Date: Sun, 10 May 2015 10:09:59 -0400 Subject: [U-Boot] [U-Boot, 2/2] Fix broken verify functionality in crc32 command In-Reply-To: <1430846633-8295-2-git-send-email-joe.hershberger@ni.com> References: <1430846633-8295-2-git-send-email-joe.hershberger@ni.com> Message-ID: <20150510140959.GE5267@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 05, 2015 at 12:23:53PM -0500, Joe Hershberger wrote: > Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 > "Roll crc32 into hash infrastructure" > > The crc32 command with no -v expects an optional 3rd argument to be an > address to store the result in. With the -v switch, the last argument > is a crc, not an address. In the case where -v is set, we should set the > HASH_FLAG_ENV flag since that will first look for the value to be a > digest value, which matches the expected API for the crc32 command. > > Signed-off-by: Joe Hershberger > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: