1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

cad/openfpgaloader: fix build on GCC architectures

Additional files now use ETIME.
This commit is contained in:
Piotr Kubaj 2020-12-29 13:56:29 +00:00
parent 488dedc86e
commit b093f9d546
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=559585
4 changed files with 31 additions and 5 deletions

View File

@ -0,0 +1,13 @@
--- src/anlogic.cpp.orig 2020-12-29 13:39:50 UTC
+++ src/anlogic.cpp
@@ -23,6 +23,10 @@
#include "progressBar.hpp"
#include "spiFlash.hpp"
+#ifndef ETIME
+#define ETIME 9935
+#endif
+
#define REFRESH 0x01
#define IDCODE 0x06
#define JTAG_PROGRAM 0x30

View File

@ -0,0 +1,13 @@
--- src/ftdispi.cpp.orig 2020-12-29 13:50:17 UTC
+++ src/ftdispi.cpp
@@ -8,6 +8,10 @@
#include "ftdipp_mpsse.hpp"
#include "ftdispi.hpp"
+#ifndef ETIME
+#define ETIME 9935
+#endif
+
/*
* SCLK -> ADBUS0
* MOSI -> ADBUS1

View File

@ -1,7 +1,7 @@
--- src/lattice.cpp.orig 2020-08-30 14:33:39 UTC
--- src/lattice.cpp.orig 2020-12-17 12:58:30 UTC
+++ src/lattice.cpp
@@ -32,6 +32,10 @@
#include "display.hpp"
@@ -34,6 +34,10 @@
#include "part.hpp"
#include "spiFlash.hpp"
+#ifndef ETIME

View File

@ -1,6 +1,6 @@
--- src/xilinx.cpp.orig 2020-07-11 06:47:54 UTC
--- src/xilinx.cpp.orig 2020-12-17 12:58:30 UTC
+++ src/xilinx.cpp
@@ -33,6 +33,10 @@ Xilinx::~Xilinx() {}
@@ -47,6 +47,10 @@ Xilinx::~Xilinx() {}
#define ISC_DISABLE 0x16
#define BYPASS 0x3f