Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Aug 2020 14:58:42 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547057 - head/cad/openfpgaloader/files
Message-ID:  <202008301458.07UEwgpj094983@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008301458.07UEwgpj094983>