add zlib support (currently limited to altera spiOverJtag)

This commit is contained in:
Gwenhael Goavec-Merou
2021-11-25 08:11:50 +01:00
parent 70e9671b3a
commit 7a19f94f19
6 changed files with 131 additions and 8 deletions
+4
View File
@@ -156,7 +156,11 @@ bool Altera::load_bridge()
// DATA_DIR is defined at compile time.
std::string bitname = DATA_DIR "/openFPGALoader/spiOverJtag_";
#ifdef HAS_ZLIB
bitname += _device_package + ".rbf.gz";
#else
bitname += _device_package + ".rbf";
#endif
std::cout << "use: " << bitname << std::endl;