From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Manning Date: Wed, 14 May 2014 14:44:59 +1200 Subject: [U-Boot] [PATCH v2 0/2] mkimage: Refactor and clean up 32-bit crcs In-Reply-To: <1399330006-3376-1-git-send-email-cdhmanning@gmail.com> References: <1399330006-3376-1-git-send-email-cdhmanning@gmail.com> Message-ID: <1400035501-11727-1-git-send-email-cdhmanning@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de As a step towards adding an image signer for socfpga, this set of patches breaks out the common crc code that is used in both pblimage and mxsimage. Not that this is NOT the same algorithm as the crc generated by zlib. The new function has been named pbl_crc32. This patch set just changes patch 1/2: casting pointers in mxsimage.c Charles Manning (2): mkimage : Split out and clean pbl_crc32 for use by other image types tools: Refactor mxsimage to use pbl_crc32 tools/Makefile | 1 + tools/mxsimage.c | 32 +++++++----------------------- tools/pbl_crc32.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/pbl_crc32.h | 13 +++++++++++++ tools/pblimage.c | 47 +------------------------------------------- 5 files changed, 78 insertions(+), 71 deletions(-) create mode 100644 tools/pbl_crc32.c create mode 100644 tools/pbl_crc32.h -- 1.7.9.5