diff --git a/firmware/Makefile b/firmware/Makefile index 21aa3f9..1831745 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -1,7 +1,9 @@ .PHONY: cpu clean DEVICETREE_GEN_DIR=. -cpu: soc.py + +all: build/digilent_arty/digilent_arty.bit overlay.dts overlay.config pin_io.h +build/digilent_arty/digilent_arty.bit: soc.py python3 soc.py clean: rm -rf build csr.json overlay.config overlay.dts pin_io.h diff --git a/software/Makefile b/software/Makefile index ca3658a..6318517 100644 --- a/software/Makefile +++ b/software/Makefile @@ -1,4 +1,4 @@ -kernel: src/*.c ../firmware/overlay.dts ../firmware/io_pins.h +build/zephyr/zephyr.bin: src/*.c ../firmware/overlay.dts ../firmware/pin_io.h mkdir -p build cd build && cmake $$(cat ../../firmware/overlay.config) -DDTC_OVERLAY_FILE=../firmware/overlay.dts -DBOARD=litex_vexriscv .. && make -j7 clean: