replaced gzip with an own compressor tool (fpga_compress.c, based on zlib)

This allows to remove the gzip header support and the z_crc32.[ch] files
(which saves more than 2KBytes of the ARM's flash memory)
This commit is contained in:
pwpiwi 2015-04-26 10:49:03 +02:00
commit f39198789b
14 changed files with 3759 additions and 1057 deletions

View file

@ -228,8 +228,7 @@ static bool reset_fpga_stream(int bitstream_version, z_streamp compressed_fpga_s
compressed_fpga_stream->zalloc = &fpga_inflate_malloc;
compressed_fpga_stream->zfree = &fpga_inflate_free;
// initialize inflate with WindowBits=15 and to automatically detect header:
inflateInit2(compressed_fpga_stream, 15+32);
inflateInit2(compressed_fpga_stream, 15);
fpga_image_ptr = output_buffer;