svn commit: r547057 - head/cad/openfpgaloader/files
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Aug 30 14:58:43 UTC 2020
Author: pkubaj
Date: Sun Aug 30 14:58:42 2020
New Revision: 547057
URL: https://svnweb.freebsd.org/changeset/ports/547057
Log:
cad/openfpgaloader: fix build on GCC architectures
ETIME is not defined on GCC architectures, define it to the value that Clang uses.
Added:
head/cad/openfpgaloader/files/patch-src_lattice.cpp (contents, props changed)
head/cad/openfpgaloader/files/patch-src_xilinx.cpp (contents, props changed)
Added: head/cad/openfpgaloader/files/patch-src_lattice.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/cad/openfpgaloader/files/patch-src_lattice.cpp Sun Aug 30 14:58:42 2020 (r547057)
@@ -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
Added: head/cad/openfpgaloader/files/patch-src_xilinx.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/cad/openfpgaloader/files/patch-src_xilinx.cpp Sun Aug 30 14:58:42 2020 (r547057)
@@ -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);
More information about the svn-ports-head
mailing list