aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2023-05-23 17:29:16 +0800
committerGitHub <noreply@github.com>2023-05-23 17:29:16 +0800
commit66f3efbbc337d37ea537687421da53d5236376bb (patch)
tree5b02fc10d9a9f5fea7f6bea574100da87ac0db1d
parent2c4d31fc60fca753c4379f716ff0cea5dc5b5c9f (diff)
parent9134376a5ff3a090f859c0c4dcca2f84c4deb492 (diff)
downloadriscv-gnu-toolchain-66f3efbbc337d37ea537687421da53d5236376bb.zip
riscv-gnu-toolchain-66f3efbbc337d37ea537687421da53d5236376bb.tar.gz
riscv-gnu-toolchain-66f3efbbc337d37ea537687421da53d5236376bb.tar.bz2
Merge pull request #1254 from riscv-collab/fix-12522023.05.24
Install pyelftools before testing
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index cc03794..0d7423f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -178,7 +178,7 @@ report-gdb: report-gdb-@default_target@
ifeq ($(SIM),qemu)
SIM_PATH:=$(srcdir)/scripts/wrapper/qemu:$(srcdir)/scripts
SIM_PREPARE:=PATH="$(SIM_PATH):$(INSTALL_DIR)/bin:$(PATH)" RISC_V_SYSROOT="$(SYSROOT)"
-SIM_STAMP:= stamps/build-qemu
+SIM_STAMP:= stamps/build-qemu stamps/install-python-package
else
ifeq ($(SIM),spike)
# Using spike simulator.
@@ -872,6 +872,10 @@ stamps/build-pk64: $(PK_SRCDIR) stamps/build-gcc-newlib-stage2
mkdir -p $(dir $@)
date > $@
+stamps/install-python-package:
+ python3 -m pip install --user pyelftools
+ date > $@
+
stamps/build-qemu: $(QEMU_SRCDIR) $(QEMU_SRC_GIT)
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)