From 1e7f2bd25c28b36c7c40ed4797b2a21cc4e1502e Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Wed, 4 Dec 2013 00:06:38 +0100 Subject: scripts: bareboxcrc32 as host and target userspacetool This patch adds the crc32 command to be build as host and optionally as target tool. Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer --- include/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 00f1642cd5..293f5041af 100644 --- a/include/common.h +++ b/include/common.h @@ -115,6 +115,8 @@ long simple_strtol(const char *cp,char **endp,unsigned int base); /* lib_generic/crc32.c */ uint32_t crc32(uint32_t, const void*, unsigned int); uint32_t crc32_no_comp(uint32_t, const void*, unsigned int); +int file_crc(char *filename, ulong start, ulong size, ulong *crc, + ulong *total); /* common/console.c */ int ctrlc (void); -- cgit v1.2.3