diff options
author | Tim Newsome <tim@sifive.com> | 2020-08-21 17:50:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 17:50:00 -0700 |
commit | 876ee63ad67efd11b753d8de3c46e60d1b7df7b8 (patch) | |
tree | 8a5a0bbf4dfbc33f16224317f92b69530e04964b | |
parent | 8d59eaae6d42e5dffa71846eb8296a8a5a461994 (diff) | |
download | riscv-opcodes-876ee63ad67efd11b753d8de3c46e60d1b7df7b8.zip riscv-opcodes-876ee63ad67efd11b753d8de3c46e60d1b7df7b8.tar.gz riscv-opcodes-876ee63ad67efd11b753d8de3c46e60d1b7df7b8.tar.bz2 |
Add header to .h files. (#48)
The header explains where the file came from.
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -13,7 +13,12 @@ ALL_OPCODES := opcodes-pseudo $(ALL_REAL_OPCODES) opcodes-rvv-pseudo install: $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H) inst.chisel instr-table.tex priv-instr-table.tex $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H): $(ALL_OPCODES) parse_opcodes encoding.h - cp encoding.h $@ + echo "/*" > $@ + echo " * This file is auto-generated by running 'make $@' in" >> $@ + echo " * https://github.com/riscv/riscv-opcodes (`git log -1 --format="format:%h"`)" >> $@ + echo " */" >> $@ + echo >> $@ + cat encoding.h >> $@ cat $(ALL_OPCODES) | python ./parse_opcodes -c >> $@ inst.chisel: $(ALL_OPCODES) parse_opcodes |