This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
forked from evolvablehardware/BitstreamEvolution
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
68 lines (53 loc) · 1.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
SHELL:=/bin/bash
.DEFAULT_GOAL:=all
LATTICE_FTDI_RULES='ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0660", GROUP="plugdev", TAG+="uaccess"'
.PHONY: all
all: init icestorm-tools udev-rules
.PHONY: clean
clean: clean-tools clean-workspace
.PHONY: clean-tools
clean-tools:
rm -rf tools
.PHONY: clean-workspace
.ONESHELL:
clean-workspace:
cd workspace
rm -rf experiment_asc experiment_bin experiment_data analysis
.PHONY: init
init:
python3 src/init.py
.PHONY: udev-rules
udev-rules:
echo -e $(LATTICE_FTDI_RULES) > 53-lattice-ftdi.rules
sudo mv 53-lattice-ftdi.rules /etc/udev/rules.d/
.PHONY: icestorm-tools
icestorm-tools: tools tools/icestorm tools/arachne-pnr tools/yosys
tools:
mkdir tools
.PHONY: icestorm
icestorm: tools tools/icestorm
.PHONY: arachne-pnr
archne-pnr: tools tools/arachne-pnr
.PHONY: yosys
yosys: tools tools/yosys
.ONESHELL:
tools/icestorm: tools
cd tools
git clone https://github.com/cliffordwolf/icestorm.git icestorm
cd icestorm
make -j$(nproc)
make install
.ONESHELL:
tools/arachne-pnr: tools
cd tools
git clone https://github.com/cseed/arachne-pnr.git arachne-pnr
cd arachne-pnr
make -j$(nproc)
make install
.ONESHELL:
tools/yosys: tools
cd tools
git clone https://github.com/cliffordwolf/yosys.git yosys;\
cd yosys
make -j$(nproc)
make install