mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-09-07 19:56:41 +02:00
make installation directory configurable
This commit is contained in:
+2
-1
@@ -5,7 +5,8 @@
|
||||
|
||||
#define IDCODE 6
|
||||
#define IRLENGTH 10
|
||||
#define BIT_FOR_FLASH "/usr/local/share/openFPGALoader/test_sfl.svf"
|
||||
// DATA_DIR is defined at compile time.
|
||||
#define BIT_FOR_FLASH (DATA_DIR "/openFPGALoader/test_sfl.svf")
|
||||
|
||||
Altera::Altera(FtdiJtag *jtag, std::string filename, bool verbose):
|
||||
Device(jtag, filename, verbose), _svf(_jtag, _verbose)
|
||||
|
||||
+2
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user