summaryrefslogtreecommitdiff
path: root/debian/patches/yosys_version_number_minor.patch
blob: fa3bc216c8f80331adbb64cad95f758f53c65ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Sun, 23 Sep 2018 09:40:08 +0200
Subject: qflow doesn't work with versions of yosys

with a "+" in the version string. This patch fixes this.
---
 scripts/synthesize.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/synthesize.sh b/scripts/synthesize.sh
index c938baa..75031e9 100755
--- a/scripts/synthesize.sh
+++ b/scripts/synthesize.sh
@@ -138,6 +138,7 @@ else
    set subrevision = ${minortest}
 
 endif
+set minor = `echo ${minor} | sed 's/+//'`
 
 # Check if "yosys_options" specifies a script to use for yosys.
 if ( ! ${?yosys_options} ) then