- disable support for fixed code blocks. Saves 2KByte code tables in ARM Flash memory
#the zlib source files required for decompressing the fpga config at run time
SRC_ZLIB = inflate.c inffast.c inftrees.c adler32.c zutil.c
#additional defines required to compile zlib
#the zlib source files required for decompressing the fpga config at run time
SRC_ZLIB = inflate.c inffast.c inftrees.c adler32.c zutil.c
#additional defines required to compile zlib
-ZLIB_CFLAGS = -DZ_SOLO -DZ_PREFIX -DNO_GZIP
+ZLIB_CFLAGS = -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED
APP_CFLAGS += $(ZLIB_CFLAGS)
# zlib includes:
APP_CFLAGS += -I../zlib
APP_CFLAGS += $(ZLIB_CFLAGS)
# zlib includes:
APP_CFLAGS += -I../zlib
#endif
/* function prototypes */
#endif
/* function prototypes */
+#ifdef ZLIB_PM3_TUNED
+extern void Dbprintf(const char *fmt, ...);
+#else
local void fixedtables OF((struct inflate_state FAR *state));
local void fixedtables OF((struct inflate_state FAR *state));
local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
unsigned copy));
#ifdef BUILDFIXED
local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
unsigned copy));
#ifdef BUILDFIXED
used for threaded applications, since the rewriting of the tables and virgin
may not be thread-safe.
*/
used for threaded applications, since the rewriting of the tables and virgin
may not be thread-safe.
*/
local void fixedtables(state)
struct inflate_state FAR *state;
{
local void fixedtables(state)
struct inflate_state FAR *state;
{
puts("\n };");
}
#endif /* MAKEFIXED */
puts("\n };");
}
#endif /* MAKEFIXED */
+#endif /* ZLIB_PM3_TUNED */
/*
Update the window with the last wsize (normally 32K) bytes written before
returning. If window does not exist yet, create it. This is only called
/*
Update the window with the last wsize (normally 32K) bytes written before
returning. If window does not exist yet, create it. This is only called
state->mode = STORED;
break;
case 1: /* fixed block */
state->mode = STORED;
break;
case 1: /* fixed block */
+#ifdef ZLIB_PM3_TUNED
+ Dbprintf("FATAL error. Compressed FPGA files with fixed code blocks are not supported!");
+ for(;;);
+#else
fixedtables(state);
Tracev((stderr, "inflate: fixed codes block%s\n",
state->last ? " (last)" : ""));
fixedtables(state);
Tracev((stderr, "inflate: fixed codes block%s\n",
state->last ? " (last)" : ""));
DROPBITS(2);
goto inf_leave;
}
DROPBITS(2);
goto inf_leave;
}
break;
case 2: /* dynamic block */
Tracev((stderr, "inflate: dynamic codes block%s\n",
break;
case 2: /* dynamic block */
Tracev((stderr, "inflate: dynamic codes block%s\n",