Merge pull request #1601 from freechipsproject/remove-riscv-tools

Remove riscv tools
This commit is contained in:
Sam Huffman 2018-11-15 08:26:41 -08:00 committed by GitHub
commit 7c415eaa26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 24 deletions

3
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "riscv-tools"]
path = riscv-tools
url = https://github.com/riscv/riscv-tools.git
[submodule "hardfloat"]
path = hardfloat
url = https://github.com/ucb-bar/berkeley-hardfloat.git

View File

@ -31,9 +31,9 @@ environment variable to your riscv-tools installation directory.
$ export RISCV=/path/to/riscv/toolchain/installation
The riscv-tools repository is already included in
rocket-chip as a Git submodule. You **must** build this version
of riscv-tools:
The riscv-tools repository known to work with rocket-chip is noted
in the file riscv-tools.hash. However, any recent riscv-tools should work.
You can build riscv-tools as follows:
$ cd rocket-chip/riscv-tools
$ git submodule update --init --recursive
@ -238,8 +238,6 @@ points to the rocket-chip repository.
$ cd rocket-chip
$ export ROCKETCHIP=`pwd`
$ git submodule update --init
$ cd riscv-tools
$ git submodule update --init --recursive riscv-tests
Before going any further, you must point the RISCV environment variable
to your riscv-tools installation directory. If you do not yet have

View File

@ -17,8 +17,11 @@ TORTURE_CONFIG ?= default
# The top-level directory that contains rocket-chip
TOP ?= ..
# The directory that tools get checked out into
RISCV_TOOLS = $(abspath $(TOP))/riscv-tools
# The hash of the tools that we're using
TOOLS_HASH ?= $(shell git -C $(TOP) ls-tree HEAD -- riscv-tools | xargs echo | cut -d' ' -f3)
TOOLS_HASH ?= $(shell cat $(TOP)/riscv-tools.hash)
$(info Using riscv-tools of $(TOOLS_HASH))
# The directory that the tools get built into.
@ -131,18 +134,24 @@ stamps/other-submodules.stamp:
git -C $(abspath $(TOP)) submodule update --init --recursive $(submodule_names)
date > $@
$(RISCV)/install.stamp:
stamps/riscv-tools_checkout.stamp:
mkdir -p $(dir $@)
git -C $(abspath $(TOP)) submodule update --init riscv-tools
rm -f $(abspath $(TOP))/riscv-tools/.travis.yml
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-gnu-toolchain
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-isa-sim
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-fesvr
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-opcodes
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-pk
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-tests
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-openocd
+cd $(abspath $(TOP))/riscv-tools; RISCV=$(abspath $(RISCV)) ./build.sh
git -C $(abspath $(TOP)) clone -n https://github.com/riscv/riscv-tools.git
git -C $(RISCV_TOOLS) checkout $(TOOLS_HASH)
git -C $(RISCV_TOOLS) submodule update --init --recursive
rm -f $(RISCV_TOOLS)/.travis.yml
mkdir -p $(dir $@)
date > $@
# riscv-tools_checkout.stamp is an order-only prerequisite:
# https://www.gnu.org/software/make/manual/make.html#Prerequisite-Types
# This means that the rule will be executed, but it will /not/ be
# evaluated as a depenency for install.stamp. This is needed because
# the timestamp on install.stamp will be older than the checkout stamp
# anytime we restore the installation area from cache in travisci.
$(RISCV)/install.stamp: | stamps/riscv-tools_checkout.stamp
mkdir -p $(dir $@)
+cd $(RISCV_TOOLS); RISCV=$(abspath $(RISCV)) ./build.sh
date > $@
# Builds the various simulators
@ -248,9 +257,8 @@ endif
JTAG_DTM_SIM_ARGS = +verbose +jtag_rbb_enable=1 $(SEED_ARG)
stamps/riscv-tests.stamp:
git -C $(abspath $(TOP)) submodule update --init riscv-tools
git -C $(abspath $(TOP))/riscv-tools submodule update --init --recursive riscv-tests
stamps/riscv-tests.stamp: stamps/riscv-tools_checkout.stamp
mkdir -p $(dir $@)
date > $@
stamps/%/vsim-jtag-dtm-32-$(JTAG_DTM_TEST).stamp: stamps/%/vsim$(JTAG_STAMP_SUFFIX).stamp stamps/riscv-tests.stamp

@ -1 +0,0 @@
Subproject commit d4f3490ed2bb54bcc7be7b2a11f764cafce579fb

1
riscv-tools.hash Normal file
View File

@ -0,0 +1 @@
d4f3490ed2bb54bcc7be7b2a11f764cafce579fb