Skip to content

Commit ae9efcc

Browse files
authored
Merge pull request #1381 from a4lg/document-prerequisite-when-testing
Document prerequisites on Testing
2 parents 50d501a + c3bb5ca commit ae9efcc

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

Makefile.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ report-gdb: report-gdb-@default_target@
204204
ifeq ($(SIM),qemu)
205205
SIM_PATH:=$(srcdir)/scripts/wrapper/qemu:$(srcdir)/scripts
206206
SIM_PREPARE:=PATH="$(SIM_PATH):$(INSTALL_DIR)/bin:$(PATH)" RISC_V_SYSROOT="$(SYSROOT)"
207-
SIM_STAMP:= stamps/build-qemu stamps/install-python-package
207+
SIM_STAMP:= stamps/build-qemu
208208
else
209209
ifeq ($(SIM),spike)
210210
# Using spike simulator.
@@ -906,10 +906,6 @@ stamps/build-pk64: $(PK_SRCDIR) $(PK_SRC_GIT) stamps/build-gcc-newlib-stage2
906906
mkdir -p $(dir $@)
907907
date > $@
908908

909-
stamps/install-python-package:
910-
python3 -m pip install --user pyelftools
911-
date > $@
912-
913909
stamps/build-qemu: $(QEMU_SRCDIR) $(QEMU_SRC_GIT)
914910
rm -rf $@ $(notdir $@)
915911
mkdir $(notdir $@)

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,34 @@ by the SIM variable in the Makefile, e.g. SIM=qemu, SIM=gdb, or SIM=spike
193193
(experimental).In addition, the simulator can also be selected with the
194194
configure time option `--with-sim=`.However, the testsuite allowlist is
195195
only mintained for qemu.Other simulators might get extra failures.
196+
197+
#### Additional Prerequisite
198+
199+
A helper script to setup testing environment requires
200+
[pyelftools](https://github.com/eliben/pyelftools).
201+
202+
On newer versions of Ubuntu, executing the following command
203+
should suffice:
204+
205+
$ sudo apt-get install python3-pyelftools
206+
207+
On newer versions of Fedora and CentOS/RHEL OS (9 or later), executing
208+
the following command should suffice:
209+
210+
$ sudo yum install python3-pyelftools
211+
212+
On Arch Linux, executing the following command should suffice:
213+
214+
$ sudo pacman -Syyu python-pyelftools
215+
216+
If your distribution/OS does not have pyelftools package, you can install
217+
it using PIP.
218+
219+
# Assuming that PIP is installed
220+
$ pip3 install --user pyelftools
221+
222+
#### Testing GCC
223+
196224
To test GCC, run the following commands:
197225

198226
./configure --prefix=$RISCV --disable-linux --with-arch=rv64ima # or --with-arch=rv32ima

0 commit comments

Comments
 (0)