aboutsummaryrefslogtreecommitdiff
path: root/isa/Makefile
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2016-07-12 11:17:10 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-07-12 11:17:10 -0700
commit7f3b666f55c9f01c2f2fd725c1686e1a509df173 (patch)
tree2e256eed2b68c15a0e0dfa6984acf96bd2252fca /isa/Makefile
parentb6c8a03dcd7ed3c109d2c9da797b295f160f051d (diff)
downloadriscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.zip
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.gz
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.bz2
Add a "--with-xlen" configure argument (#16)
The tools had riscv64-unknown-elf-gcc hard-coded all over the place. This lets users override that if they have a 32-bit toolchain.
Diffstat (limited to 'isa/Makefile')
-rw-r--r--isa/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/isa/Makefile b/isa/Makefile
index 4e1af6c..facc611 100644
--- a/isa/Makefile
+++ b/isa/Makefile
@@ -23,13 +23,12 @@ default: all
# Build rules
#--------------------------------------------------------------------
-RISCV_PREFIX ?= riscv64-unknown-elf-
+RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf-
RISCV_GCC ?= $(RISCV_PREFIX)gcc
ENTROPY ?= -DENTROPY=$(shell echo $$$$)
RISCV_GCC_OPTS ?= $(ENTROPY) -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles
RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data
RISCV_SIM ?= spike
-XLEN ?= 64
vpath %.S $(src_dir)