diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2013-12-04 00:06:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-04 17:17:06 +0100 |
commit | 1e7f2bd25c28b36c7c40ed4797b2a21cc4e1502e (patch) | |
tree | c9e17a96d29046e033c37e0341570cc9501012da /include/common.h | |
parent | a83f635fb2a069c91693ebd15f336fa04e1b7204 (diff) | |
download | barebox-1e7f2bd25c28b36c7c40ed4797b2a21cc4e1502e.tar.gz barebox-1e7f2bd25c28b36c7c40ed4797b2a21cc4e1502e.tar.xz |
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 <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |