aboutsummaryrefslogtreecommitdiff
path: root/cad/openfpgaloader
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-30 14:58:42 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-30 14:58:42 +0000
commit1ba7e4e6ed17fd081e5625de167386580bddafc1 (patch)
tree30ba58af770edc2abb9cf43cb10a45d4991dd217 /cad/openfpgaloader
parent6ded3faed8a05ea6d6284e71f80251880ab70fff (diff)
downloadports-1ba7e4e6ed17fd081e5625de167386580bddafc1.tar.gz
ports-1ba7e4e6ed17fd081e5625de167386580bddafc1.zip
cad/openfpgaloader: fix build on GCC architectures
ETIME is not defined on GCC architectures, define it to the value that Clang uses.
Notes
Notes: svn path=/head/; revision=547057
Diffstat (limited to 'cad/openfpgaloader')
-rw-r--r--cad/openfpgaloader/files/patch-src_lattice.cpp13
-rw-r--r--cad/openfpgaloader/files/patch-src_xilinx.cpp13
2 files changed, 26 insertions, 0 deletions
diff --git a/cad/openfpgaloader/files/patch-src_lattice.cpp b/cad/openfpgaloader/files/patch-src_lattice.cpp
new file mode 100644
index 000000000000..bb9d19c42b5b
--- /dev/null
+++ b/cad/openfpgaloader/files/patch-src_lattice.cpp
@@ -0,0 +1,13 @@
+--- src/lattice.cpp.orig 2020-08-30 14:33:39 UTC
++++ src/lattice.cpp
+@@ -32,6 +32,10 @@
+ #include "display.hpp"
+ #include "spiFlash.hpp"
+
++#ifndef ETIME
++#define ETIME 9935
++#endif
++
+ using namespace std;
+
+ #define ISC_ENABLE 0xc6
diff --git a/cad/openfpgaloader/files/patch-src_xilinx.cpp b/cad/openfpgaloader/files/patch-src_xilinx.cpp
new file mode 100644
index 000000000000..bbad76368eb5
--- /dev/null
+++ b/cad/openfpgaloader/files/patch-src_xilinx.cpp
@@ -0,0 +1,13 @@
+--- src/xilinx.cpp.orig 2020-07-11 06:47:54 UTC
++++ src/xilinx.cpp
+@@ -33,6 +33,10 @@ Xilinx::~Xilinx() {}
+ #define ISC_DISABLE 0x16
+ #define BYPASS 0x3f
+
++#ifndef ETIME
++#define ETIME 9935
++#endif
++
+ void Xilinx::reset()
+ {
+ _jtag->shiftIR(JSHUTDOWN, 6);