aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-11-27 14:19:41 -0800
committerAndrew Waterman <aswaterman@gmail.com>2017-11-27 14:19:41 -0800
commit58b6f418878bae28743c5b2556ed5ad7c3cad672 (patch)
tree20f05e0f1cfa28ea88aa0d5e32c866583d519541
parente0abc2255a71afb0236032ae3d92bea26c15716d (diff)
downloadriscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.zip
riscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.tar.gz
riscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.tar.bz2
Generate encoding.h for OpenOCD as well. (#16)
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 795cb94..8fb5afd 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,13 @@ PK_H := ../riscv-pk/machine/encoding.h
FESVR_H := ../riscv-fesvr/fesvr/encoding.h
ENV_H := ../riscv-tests/env/encoding.h
GAS_H := ../riscv-gnu-toolchain/riscv-binutils-gdb/include/opcode/riscv-opc.h
+OPENOCD_H := ../riscv-openocd/src/target/riscv/encoding.h
ALL_OPCODES := opcodes-pseudo opcodes opcodes-rvc opcodes-rvc-pseudo opcodes-custom
-install: $(ISASIM_H) $(PK_H) $(FESVR_H) $(ENV_H) inst.chisel instr-table.tex priv-instr-table.tex
+install: $(ISASIM_H) $(PK_H) $(FESVR_H) $(ENV_H) $(OPENOCD_H) inst.chisel instr-table.tex priv-instr-table.tex
-$(ISASIM_H) $(PK_H) $(FESVR_H) $(ENV_H): $(ALL_OPCODES) parse-opcodes encoding.h
+$(ISASIM_H) $(PK_H) $(FESVR_H) $(ENV_H) $(OPENOCD_H): $(ALL_OPCODES) parse-opcodes encoding.h
cp encoding.h $@
cat opcodes opcodes-rvc-pseudo opcodes-rvc opcodes-custom | ./parse-opcodes -c >> $@