Makefiles depend on generated files

This commit is contained in:
Peter McGoron 2022-07-13 14:11:56 -04:00
parent 7fa5431ea4
commit 2e42fef4ef
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
.PHONY: cpu clean .PHONY: cpu clean
DEVICETREE_GEN_DIR=. 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 python3 soc.py
clean: clean:
rm -rf build csr.json overlay.config overlay.dts pin_io.h rm -rf build csr.json overlay.config overlay.dts pin_io.h

View File

@ -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 mkdir -p build
cd build && cmake $$(cat ../../firmware/overlay.config) -DDTC_OVERLAY_FILE=../firmware/overlay.dts -DBOARD=litex_vexriscv .. && make -j7 cd build && cmake $$(cat ../../firmware/overlay.config) -DDTC_OVERLAY_FILE=../firmware/overlay.dts -DBOARD=litex_vexriscv .. && make -j7
clean: clean: