make installation directory configurable

This commit is contained in:
japm48
2020-02-16 13:41:58 +01:00
parent 1f02fce1c9
commit 52786895d8
5 changed files with 15 additions and 4 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ void Xilinx::program(unsigned int offset)
void Xilinx::program_spi(unsigned int offset)
{
std::string bitname = "/usr/local/share/openFPGALoader/spiOverJtag_";
// DATA_DIR is defined at compile time.
std::string bitname = DATA_DIR "/openFPGALoader/spiOverJtag_";
bitname += fpga_list[idCode()].family + ".bit";
/* first: load spi over jtag */