diff options
author | Tim Newsome <tim@sifive.com> | 2017-11-27 14:19:41 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2017-11-27 14:19:41 -0800 |
commit | 58b6f418878bae28743c5b2556ed5ad7c3cad672 (patch) | |
tree | 20f05e0f1cfa28ea88aa0d5e32c866583d519541 /Makefile | |
parent | e0abc2255a71afb0236032ae3d92bea26c15716d (diff) | |
download | riscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.zip riscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.tar.gz riscv-opcodes-58b6f418878bae28743c5b2556ed5ad7c3cad672.tar.bz2 |
Generate encoding.h for OpenOCD as well. (#16)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 >> $@ |