-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (23 loc) · 959 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
.PHONY: pyenv
SHELL := /bin/bash
#Processor and firmware :
CPU_TYPE?=cv32e41p
VARIANT?=HIDS_SYNTH
APPLICATION?=demo
gateware:
python3 -m boards.targets.digilent_arty_lora_tracer --variant=a7-100 --cpu-type=$(CPU_TYPE) --cpu-variant=$(VARIANT) --integrated-sram-size=32768 --sys-clk-freq=50e6 --csr-csv=csr.csv --build
load_bitstream:
python3 -m boards.targets.digilent_arty_lora_tracer --variant=a7-100 --cpu-type=$(CPU_TYPE) --cpu-variant=$(VARIANT) --integrated-sram-size=32768 --sys-clk-freq=50e6 --csr-csv=csr.csv --load
compile_app:
make -C examples/$(APPLICATION)
load_app:
litex_term /dev/ttyUSB1 --kernel examples/$(APPLICATION)/demo.bin
python-deps: activate-pyenv # installs python dependencies inside virtual environment
pip install -r requirements.txt
activate-pyenv:
source venv/pyenv/bin/activate
pyenv:
python3 -m venv venv/pyenv
clean:
rm -rf examples/*/obj
rm -rf build