upsilon/firmware/Makefile

19 lines
588 B
Makefile
Raw Normal View History

2022-07-12 13:29:26 -04:00
.PHONY: cpu clean
2022-07-12 15:22:14 -04:00
DEVICETREE_GEN_DIR=.
2022-07-13 14:11:56 -04:00
2023-03-15 14:57:08 -04:00
all: rtl_codegen build/digilent_arty/digilent_arty.bit overlay.dts overlay.config pin_io.h
2023-03-15 03:04:27 -04:00
2023-03-15 14:57:08 -04:00
rtl_codegen:
cd rtl && make
build/digilent_arty/digilent_arty.bit: rtl_codegen soc.py
2022-07-12 13:29:26 -04:00
python3 soc.py
clean:
2022-07-12 15:37:57 -04:00
rm -rf build csr.json overlay.config overlay.dts pin_io.h
2022-07-12 15:22:14 -04:00
overlay.dts overlay.config: csr.json litex_json2dts_zephyr.py
2022-07-12 13:29:26 -04:00
# NOTE: Broken in LiteX 2022.4.
2022-07-12 15:22:14 -04:00
$(DEVICETREE_GEN_DIR)/litex_json2dts_zephyr.py --dts overlay.dts --config overlay.config csr.json
2022-07-12 15:36:50 -04:00
pin_io.h: csr.json generate_csr_locations.py
python3 generate_csr_locations.py > pin_io.h