upsilon/firmware/Makefile

22 lines
539 B
Makefile
Raw Normal View History

2023-04-06 19:28:12 -04:00
.PHONY: cpu clean rtl_codegen
2022-07-12 15:22:14 -04:00
DEVICETREE_GEN_DIR=.
2022-07-13 14:11:56 -04:00
2023-05-30 16:50:30 -04:00
all: rtl_codegen build/digilent_arty/digilent_arty.bit arty.dtb pin_io.c
2023-03-15 03:04:27 -04:00
2023-03-15 14:57:08 -04:00
rtl_codegen:
cd rtl && make
2023-05-30 16:01:32 -04:00
csr.json build/digilent_arty/digilent_arty.bit: soc.py
2022-07-12 13:29:26 -04:00
python3 soc.py
clean:
2023-05-30 16:01:32 -04:00
rm -rf build csr.json overlay.config overlay.dts pin_io.h arty.dts arty.dtb
cd rtl && make clean
2023-05-30 16:01:32 -04:00
arty.dts: csr.json
2023-05-30 16:50:30 -04:00
litex_json2dts_linux csr.json > arty.dts
2023-05-30 16:01:32 -04:00
arty.dtb: arty.dts
dtc -O dtb -o arty.dtb arty.dts
2022-07-12 15:36:50 -04:00
2023-04-18 15:47:57 -04:00
pin_io.c: csr.json generate_csr_locations.py
python3 generate_csr_locations.py > pin_io.c