Package: arachne-pnr / 0.1+20160813git52e69ed-1

05_prevent_dependency_on_git.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Mon, 19 Sep 2016 08:03:15 +0200
Subject: Set VER and GIT_REV explicitly so that the build does not need to be
 done in a git repository.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 5532b86..f2e4163 100644
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ ICEBOX = /usr/share/fpga-icestorm/chipdb
 .PHONY: all
 all: bin/arachne-pnr share/arachne-pnr/chipdb-1k.bin share/arachne-pnr/chipdb-8k.bin
 
-VER = 0.1+$(shell echo `git log --oneline | wc -l`)+$(shell echo `git diff --name-only HEAD | wc -l`)
-GIT_REV = $(shell git rev-parse --verify --short HEAD)
+VER = 0.1+20151224git1a4fdf9
+GIT_REV = 1a4fdf9
 
 VER_HASH = $(shell echo "$(VER) $(GIT_REV)" | sum | cut -d ' ' -f -1)