-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·40 lines (31 loc) · 887 Bytes
/
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
.PHONY: help build_all prog_fpga clean_all start_console run
INIT_APP := fw/usb_test
help:
@echo "Usage:"
@echo " REV A or B Pano (xc6slx150):"
@echo " make load - load bit stream directly into FPGA"
@echo " make prog_fpga - program SPI flash"
@echo " make build_all - rebuild bitstream from sources (optional)"
@echo
@echo " REV C Pano (xc6slx100):"
@echo " make PLATFORM=pano-g2-c load"
@echo " ..."
@echo
@echo " make start_console (bit stream must be loaded)"
@echo
@echo " other make targets: build_all, clean_all, run"
build_all:
make -C $(INIT_APP) init_image
make -C fpga
prog_fpga:
make -C fpga prog_fpga
clean_all:
make -C $(INIT_APP) clean
make -C fpga clean
start_console:
make -C $(INIT_APP) start_console
run:
make -C $(INIT_APP) load
make -C $(INIT_APP) run_prebuilt
load:
make -C $(INIT_APP) load