forked from juancamilovega/SHIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (55 loc) · 1.9 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
69
all: set_parameters hls gulf_stream storage_server bit_file binary device_tree
no_outputs: set_half_parameters hls driver_hls gulf_stream storage_server driver_proj
driver_only: driver_hls gulf_stream driver_proj
hls:
$(MAKE) -C ip_repo/driver_hls_ips
$(MAKE) -C ip_repo/hls_ips
ship_hls:
$(MAKE) -C ip_repo/hls_ips
driver_hls:
$(MAKE) -C ip_repo/driver_hls_ips
set_half_parameters:
python ship_params.py
gulf_stream:
rm -rf repos/GULF-Stream
mkdir repos
git clone https://github.com/QianfengClarkShen/GULF-Stream.git
mv GULF-Stream repos/
$(MAKE) -C repos/GULF-Stream clean_all
$(MAKE) -C repos/GULF-Stream GULF_Stream_IPCore
set_parameters:
python ship_params.py
python num_cores_only.py
driver_proj:
rm -rf SHIP_driver
vivado -mode tcl -source src/tcl/driver.tcl -nolog -nojournal
storage_server:
rm -rf SHIP_hardware
if [ ! -f ip_addr.txt ]; then python ship_params.py; fi
if [ ! -f gateway_addr.txt ]; then python ship_params.py; fi
if [ ! -f mac_addr.txt ]; then python ship_params.py; fi
if [ ! -f subnet.txt ]; then python ship_params.py; fi
vivado -mode tcl -source src/tcl/ship.tcl -nolog -nojournal
bit_file:
if [ ! -d output_products ]; then mkdir output_products; fi
if [ ! -f num_cores.txt ]; then python num_cores_only.py; fi
vivado -mode tcl -source src/tcl/make_output.tcl -nolog -nojournal
rm num_cores.txt
binary:
if [ ! -d output_products ]; then mkdir output_products; fi
bootgen -arch zynqmp -image src/compilation_files/ship.bif -o output_products/storage.bin -w
device_tree:
if [ ! -d output_products ]; then mkdir output_products; fi
dtc -O dtb -o output_products/storage.dtbo -b 0 -@ src/compilation_files/ship.dtsi
clean:
$(MAKE) -C ip_repo/hls_ips clean
$(MAKE) -C ip_repo/driver_hls_ips clean
rm -f ip_addr.txt
rm -f gateway_addr.txt
rm -f mac_addr.txt
rm -f subnet.txt
rm -f num_cores.txt
rm -rf repos
rm -rf SHIP_hardware
rm -rf SHIP_driver
rm -rf output_products