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 03:04:27 -04:00
|
|
|
all: rtl/base/base.v build/digilent_arty/digilent_arty.bit overlay.dts overlay.config pin_io.h
|
|
|
|
|
|
|
|
rtl/base/base.v:
|
|
|
|
cd rtl/base && make
|
|
|
|
build/digilent_arty/digilent_arty.bit: rtl/base/base.v 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
|