aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerin Joy <joy@rivosinc.com>2022-09-23 15:43:32 -0700
committerJerin Joy <joy@rivosinc.com>2022-09-23 15:43:35 -0700
commit204a639780dda374320a4ef31d714694db7ae46f (patch)
treebda84c962549322b9ce121a2ac613a0f723faf57
parent2a7c33b8b50f91379a12f983dd3c1c7ee9f89a90 (diff)
downloadriscv-isa-sim-204a639780dda374320a4ef31d714694db7ae46f.zip
riscv-isa-sim-204a639780dda374320a4ef31d714694db7ae46f.tar.gz
riscv-isa-sim-204a639780dda374320a4ef31d714694db7ae46f.tar.bz2
Build and install lib and header dependencies for Hammer
https://github.com/rivosinc/hammer Signed-off-by: Jerin Joy <joy@rivosinc.com>
-rw-r--r--riscv/riscv.mk.in32
-rw-r--r--softfloat/softfloat.mk.in9
-rw-r--r--spike_main/spike_main.mk.in2
3 files changed, 41 insertions, 2 deletions
diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in
index 45fe2eb..bbac794 100644
--- a/riscv/riscv.mk.in
+++ b/riscv/riscv.mk.in
@@ -3,8 +3,14 @@ get_opcode = $(shell grep ^DECLARE_INSN.*\\\<$(2)\\\> $(1) | sed 's/DECLARE_INSN
riscv_subproject_deps = \
fdt \
+ disasm \
+ fesvr \
softfloat \
+riscv_CFLAGS = -fPIC
+
+riscv_install_shared_lib = yes
+
riscv_install_prog_srcs = \
riscv_hdrs = \
@@ -37,7 +43,31 @@ riscv_hdrs = \
csrs.h \
triggers.h \
-riscv_install_hdrs = mmio_plugin.h
+riscv_install_hdrs = \
+ abstract_device.h \
+ cachesim.h \
+ cfg.h \
+ common.h \
+ csrs.h \
+ debug_module.h \
+ debug_rom_defines.h \
+ decode.h \
+ devices.h \
+ encoding.h \
+ entropy_source.h \
+ isa_parser.h \
+ log_file.h \
+ memtracer.h \
+ mmio_plugin.h \
+ mmu.h \
+ p_ext_macros.h \
+ platform.h \
+ processor.h \
+ sim.h \
+ simif.h \
+ trap.h \
+ triggers.h \
+ v_ext_macros.h \
riscv_precompiled_hdrs = \
insn_template.h \
diff --git a/softfloat/softfloat.mk.in b/softfloat/softfloat.mk.in
index a20ab7e..6e7bbe9 100644
--- a/softfloat/softfloat.mk.in
+++ b/softfloat/softfloat.mk.in
@@ -238,4 +238,11 @@ softfloat_install_shared_lib = yes
softfloat_test_srcs =
-softfloat_install_prog_srcs =
+softfloat_install_hdrs = \
+ softfloat.h \
+ softfloat_types.h \
+ primitives.h \
+ internals.h \
+ platform.h \
+ primitiveTypes.h \
+ specialize.h \
diff --git a/spike_main/spike_main.mk.in b/spike_main/spike_main.mk.in
index 35bef39..ec6c817 100644
--- a/spike_main/spike_main.mk.in
+++ b/spike_main/spike_main.mk.in
@@ -14,3 +14,5 @@ spike_main_install_prog_srcs = \
spike_main_hdrs = \
spike_main_srcs = \
+
+spike_main_CFLAGS = -fPIC