From fae12b82e183ab952f502d65f8067ab22fe3f09a Mon Sep 17 00:00:00 2001 From: IIITM-Jay Date: Mon, 22 Jul 2024 23:51:33 +0530 Subject: [PATCH 1/2] Enhancement and Optimization:: Makefile --- Makefile | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index cce19cdc..147173a0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -EXTENSIONS := "rv*" "unratified/rv*" +EXTENSIONS := "rv*" "unratified/rv*" ISASIM_H := ../riscv-isa-sim/riscv/encoding.h PK_H := ../riscv-pk/machine/encoding.h ENV_H := ../riscv-tests/env/encoding.h @@ -7,48 +7,41 @@ INSTALL_HEADER_FILES := $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H) default: everything -.PHONY : everything +.PHONY: everything encoding.out.h inst.chisel inst.go latex inst.sverilog inst.rs clean install instr-table.tex priv-instr-table.tex inst.spinalhdl + everything: @./parse.py -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS) -.PHONY : encoding.out.h encoding.out.h: @./parse.py -c rv* unratified/rv_* unratified/rv32* unratified/rv64* -.PHONY : inst.chisel inst.chisel: @./parse.py -chisel $(EXTENSIONS) -.PHONY : inst.go inst.go: @./parse.py -go $(EXTENSIONS) -.PHONY : latex latex: @./parse.py -latex $(EXTENSIONS) -.PHONY : inst.sverilog inst.sverilog: @./parse.py -sverilog $(EXTENSIONS) -.PHONY : inst.rs inst.rs: @./parse.py -rust $(EXTENSIONS) -.PHONY : clean clean: rm -f inst* priv-instr-table.tex encoding.out.h -.PHONY : install install: everything - set -e; for FILE in $(INSTALL_HEADER_FILES); do cp -f encoding.out.h $$FILE; done + set -e; \ + for FILE in $(INSTALL_HEADER_FILES); do \ + cp -f encoding.out.h $$FILE; \ + done -.PHONY: instr-table.tex instr-table.tex: latex -.PHONY: priv-instr-table.tex priv-instr-table.tex: latex -.PHONY: inst.spinalhdl inst.spinalhdl: @./parse.py -spinalhdl $(EXTENSIONS) From b6bed516af341b107859f9af5d7122c06930dc49 Mon Sep 17 00:00:00 2001 From: IIITM-Jay Date: Wed, 9 Oct 2024 19:55:47 +0530 Subject: [PATCH 2/2] pre commit fixes --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 147173a0..6837ea04 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -EXTENSIONS := "rv*" "unratified/rv*" +EXTENSIONS := "rv*" "unratified/rv*" ISASIM_H := ../riscv-isa-sim/riscv/encoding.h PK_H := ../riscv-pk/machine/encoding.h ENV_H := ../riscv-tests/env/encoding.h