From 46f56755df818ac70d479bbb808050a431ad3160 Mon Sep 17 00:00:00 2001 From: UzixLS Date: Sat, 29 Jan 2022 10:23:20 +0300 Subject: [PATCH] update Makefile: add new targets (pipeline, pipeline_sof); tiny refactor --- Makefile | 22 ++++++++++++++++++---- fpga/syn/Makefile | 3 ++- rom_src/Makefile | 2 +- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 552d01f..dd7e7bc 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/fpga/syn/Makefile b/fpga/syn/Makefile index bc755c8..93ba01b 100644 --- a/fpga/syn/Makefile +++ b/fpga/syn/Makefile @@ -1,4 +1,5 @@ -REVISION = rev_A +REV = A +REVISION = rev_${REV} .PHONY: build sof2jic program_sof program_jic clean report diff --git a/rom_src/Makefile b/rom_src/Makefile index cf6bdae..8f94cdd 100644 --- a/rom_src/Makefile +++ b/rom_src/Makefile @@ -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: