aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-03-20 18:14:18 -0700
committerGitHub <noreply@github.com>2018-03-20 18:14:18 -0700
commit2ef39e7ae1f8237c6e36f39087ab84c58d70ca9a (patch)
tree7a7c291ff300fae7e6bfc244845a1180ce288390
parentfc3d7e8196dfb567a9b6c34dd97c1b43260b4cd5 (diff)
parentd25e3867dbf01cb9f931704b5e844c63da6e4102 (diff)
downloadriscv-tests-2ef39e7ae1f8237c6e36f39087ab84c58d70ca9a.zip
riscv-tests-2ef39e7ae1f8237c6e36f39087ab84c58d70ca9a.tar.gz
riscv-tests-2ef39e7ae1f8237c6e36f39087ab84c58d70ca9a.tar.bz2
Merge pull request #119 from rishikhan/master
Update Makefile to allow for RISCV_PREFIX to be set by the configure
-rw-r--r--Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index c073655..ea71c6b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,6 +1,12 @@
prefix := @prefix@
abs_top_src_dir := @abs_top_srcdir@
XLEN := @XLEN@
+target_alias := @target_alias@
+ifeq ($(target_alias),)
+RISCV_PREFIX_VAR :=
+else
+RISCV_PREFIX_VAR := RISCV_PREFIX=@target_alias@-
+endif
instbasedir := $(DESTDIR)$(prefix)
bmarkdir := $(abs_top_src_dir)/benchmarks
isa_src_dir := $(abs_top_src_dir)/isa
@@ -16,11 +22,11 @@ install: all
benchmarks:
mkdir -p benchmarks
- $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) XLEN=$(XLEN)
+ $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) XLEN=$(XLEN) $(RISCV_PREFIX_VAR)
isa:
mkdir -p isa
- $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) XLEN=$(XLEN)
+ $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) XLEN=$(XLEN) $(RISCV_PREFIX_VAR)
debug-check:
mkdir -p debug