2022-07-12 13:29:26 -04:00
|
|
|
.PHONY: cpu clean
|
2022-07-12 15:22:14 -04:00
|
|
|
|
|
|
|
DEVICETREE_GEN_DIR=.
|
2022-07-12 13:29:26 -04:00
|
|
|
cpu: soc.py
|
|
|
|
python3 soc.py
|
|
|
|
clean:
|
|
|
|
rm -rf build csr.json overlay.config overlay.dts
|
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
|