add devicetree generation
This commit is contained in:
parent
930b5ec8af
commit
49c50cbe07
|
@ -1,7 +1,10 @@
|
||||||
.PHONY: cpu clean
|
.PHONY: cpu clean
|
||||||
|
|
||||||
|
DEVICETREE_GEN_DIR=.
|
||||||
cpu: soc.py
|
cpu: soc.py
|
||||||
python3 soc.py
|
python3 soc.py
|
||||||
clean:
|
clean:
|
||||||
rm -rf build csr.json overlay.config overlay.dts
|
rm -rf build csr.json overlay.config overlay.dts
|
||||||
overlay.dts overlay.config: csr.json
|
overlay.dts overlay.config: csr.json litex_json2dts_zephyr.py
|
||||||
# NOTE: Broken in LiteX 2022.4.
|
# NOTE: Broken in LiteX 2022.4.
|
||||||
|
$(DEVICETREE_GEN_DIR)/litex_json2dts_zephyr.py --dts overlay.dts --config overlay.config csr.json
|
||||||
|
|
Loading…
Reference in New Issue