Print this page
OS-7095 Want risc-v disassembler

@@ -21,10 +21,11 @@
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
 # The build process for libdisasm is sightly different from that used by other
 # libraries, because libdisasm must be built in two flavors - as a standalone

@@ -56,37 +57,41 @@
                         $(SRC)/common/dis/i386/dis_tables.c
 SRCS_sparc=             $(COMDIR)/dis_sparc.c \
                         $(COMDIR)/dis_sparc_fmt.c \
                         $(COMDIR)/dis_sparc_instr.c
 SRCS_s390x=             $(COMDIR)/dis_s390x.c
+SRCS_riscv=             $(COMDIR)/dis_riscv.c
 
 OBJECTS_i386=           dis_i386.o \
                         dis_tables.o
 OBJECTS_sparc=          dis_sparc.o \
                         dis_sparc_fmt.o \
                         dis_sparc_instr.o
 OBJECTS_s390x=          dis_s390x.o
+OBJECTS_riscv=          dis_riscv.o
 
 #
 # We build the regular shared library with support for all architectures.
 # The standalone version should only contain code for the native
 # architecture to reduce the memory footprint of kmdb.
 #
 OBJECTS_library=        $(OBJECTS_common) \
                         $(OBJECTS_i386) \
                         $(OBJECTS_sparc) \
-                        $(OBJECTS_s390x)
+                        $(OBJECTS_s390x) \
+                        $(OBJECTS_riscv)
 OBJECTS_standalone=     $(OBJECTS_common) \
                         $(OBJECTS_$(MACH))
 OBJECTS=                $(OBJECTS_$(CURTYPE))
 
 include $(SRC)/lib/Makefile.lib
 
 SRCS_library=           $(SRCS_common) \
                         $(SRCS_i386) \
                         $(SRCS_sparc) \
-                        $(SRCS_s390x)
+                        $(SRCS_s390x) \
+                        $(SRCS_riscv) \
 SRCS_standalone=        $(SRCS_common) \
                         $(SRCS_$(MACH))
 SRCS=                   $(SRCS_$(CURTYPE))
 
 #