Makefiles depend on generated files
This commit is contained in:
parent
7fa5431ea4
commit
2e42fef4ef
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue