--- a/Makefile 2023-07-08 11:07:34.321771165 +0800 +++ b/Makefile 2023-07-08 11:08:32.621465214 +0800 @@ -34,6 +34,10 @@ TARGET=ARM64 TARGET_CFLAGS= endif +ifeq ($(shell arch), riscv64) + TARGET=RISCV64 + TARGET_CFLAGS= +endif INCDIR=/usr/include/crash