1
0
mirror of https://github.com/UzixLS/zx-sizif-xxs.git synced 2025-07-19 07:11:28 +03:00

update Makefile: add new targets (pipeline, pipeline_sof); tiny refactor

This commit is contained in:
UzixLS
2022-01-29 10:23:20 +03:00
parent 7b519a56ff
commit 46f56755df
3 changed files with 21 additions and 6 deletions

View File

@ -1,13 +1,16 @@
OUTDIR=out_new
REV=A
.PHONY: all build_rev clean pipeline pipeline_sof
all:
mkdir -p ${OUTDIR}/
${MAKE} build_rev REV=A
${MAKE} REV=A build_rev
build_rev:
${MAKE} -C rom_src/ REV=${REV} clean all
${MAKE} -C rom/ REV=${REV} clean all
${MAKE} -C fpga/syn/ REVISION=rev_${REV} clean build sof2jic
${MAKE} REV=${REV} -C rom_src/ clean all
${MAKE} REV=${REV} -C rom/ clean all
${MAKE} REV=${REV} -C fpga/syn/ clean build sof2jic
cp fpga/syn/output/rev_${REV}.jic ${OUTDIR}/rev_${REV}.jic
clean:
@ -16,3 +19,14 @@ 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

View File

@ -1,4 +1,5 @@
REVISION = rev_A
REV = A
REVISION = rev_${REV}
.PHONY: build sof2jic program_sof program_jic clean report

View File

@ -1,7 +1,7 @@
export PATH:=/cygdrive/c/Hwdev/sjasmplus/:/cygdrive/c/Dev/srec/:${PATH}
REV=D
SJOPTS=-DSIZIFXXS
SJOPTS=-DSIZIFXXS -DREV_${REV}
.PHONY: all clean .FORCE
.FORCE: