1
0
mirror of https://github.com/UzixLS/zx-sizif-xxs.git synced 2025-07-18 23:01:40 +03:00
Files
zx-sizif-xxs/Makefile
2023-03-24 21:58:05 +03:00

36 lines
886 B
Makefile

OUTDIR=out_new
REV=zero_A
.PHONY: all build_rev clean pipeline pipeline_sof
all:
mkdir -p ${OUTDIR}/
${MAKE} REV=A build_rev
${MAKE} REV=B build_rev
${MAKE} REV=zero_A build_rev
build_rev:
${MAKE} REV=${REV} -C rom_src/ clean all
${MAKE} REV=${REV} -C rom/ clean all
${MAKE} REV=${REV} -C fpga/syn/ clean build sof2jic rbf2bin
cp fpga/syn/output/rev_${REV}.jic ${OUTDIR}/rev_${REV}.jic
cat fpga/syn/output/rev_${REV}.bin rom/sizif.rom > ${OUTDIR}/rev_${REV}.bin
clean:
rm -rf "${OUTDIR}"
${MAKE} -C fpga/syn/ clean
${MAKE} -C fpga/tb/ clean
${MAKE} -C rom_src/ clean
${MAKE} -C rom/ clean
pipeline:
${MAKE} REV=${REV} -C rom_src/
${MAKE} REV=${REV} -C rom/
${MAKE} REV=${REV} -C fpga/syn/ build report sof2jic program_jic program_sof
pipeline_sof:
${MAKE} REV=${REV} -C rom_src/
${MAKE} REV=${REV} -C fpga/syn/ build report program_sof
-include Makefile.local