diff options
Diffstat (limited to 'fpga/ebaz4205/ebaz4205_fpga/Makefile')
| -rw-r--r-- | fpga/ebaz4205/ebaz4205_fpga/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/fpga/ebaz4205/ebaz4205_fpga/Makefile b/fpga/ebaz4205/ebaz4205_fpga/Makefile new file mode 100644 index 0000000..b991aa0 --- /dev/null +++ b/fpga/ebaz4205/ebaz4205_fpga/Makefile @@ -0,0 +1,43 @@ +HDLM=hdlmake +SIX=${HDLM}/lib/python3.11/site-packages/six.py +HDLMAKE=${PWD}/${HDLM}/bin/hdlmake +VIVADO=${PWD}/../scripts/vivado +FB=build +FBC=Manifest.py syn_post_bitstream_cmd.tcl xilinx_ise_vivado_license.lic +BIN=${FB}/ebaz4205_top.runs/impl_1/ebaz4205_top.bin +SRC=$(shell find src -type f) + +default: ${BIN} + +${BIN}:${SRC} ${FB}/Makefile + ${MAKE} -C ${FB} mrproper + ${MAKE} -C ${FB} + +${FB}/Makefile:${FS} ${HDLMAKE} ${FBC:%=${FB}/%} + (cd ${FB} && ${HDLMAKE} clean) + (cd ${FB} && ${HDLMAKE} makefile) + sed -i -e 's%vivado%${VIVADO}%g' $@ + +${FB}/%:${FB}.clean/% + mkdir -p ${FB} + install -m 644 $< $@ + +${FB}/%:../src/% + mkdir -p ${FB} + install -m 644 $< $@ + + + +${HDLMAKE}: ${SIX} + ${HDLM}/bin/pip install hdlmake==3.3 + +${SIX}: ${HDLM}/bin/pip + ${HDLM}/bin/pip install six==1.17.0 + +hdlmake/bin/pip: + python3.11 -mvenv ${HDLM} + +clean: + /bin/rm -rf ${FB} + + |
