diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2015-08-06 16:57:48 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-08-09 12:34:24 +0200 |
commit | 03597d0f017f4506f0905d7c87ec0d51859d8982 (patch) | |
tree | fa5c694450a5d2b169ec080e8c7ee97dbc82e26c /util/broadcom/secimage/sbi.c | |
parent | 9dd8f888418e75debb767fa799e5a4ce2b924bf6 (diff) |
secimage: Use libz's crc32 function
This is to trick libreboot into not deleting misc.c when checking
out coreboot.
Change-Id: I8f0bb5cb3eb5681f99c616ae03de126efab852a9
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/11134
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/broadcom/secimage/sbi.c')
-rw-r--r-- | util/broadcom/secimage/sbi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/broadcom/secimage/sbi.c b/util/broadcom/secimage/sbi.c index b5d9a12d1e..58d4a39989 100644 --- a/util/broadcom/secimage/sbi.c +++ b/util/broadcom/secimage/sbi.c @@ -17,6 +17,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#include <zlib.h> #include "secimage.h" #define MIN_SIZE (1024*120) @@ -150,7 +151,7 @@ int CreateSecureBootImage(int ac, char **av) if (!status) { ((HEADER *)buf)->Length = sbiLen; - ((HEADER *)buf)->crc = calc_crc32(0xFFFFFFFF, + ((HEADER *)buf)->crc = crc32(0xFFFFFFFF, (uint8_t *)buf, 12); printf("Generating Image file %s: %d bytes\n", |