Skip to content

Commit 9134376

Browse files
committed
Install pyelftools before testing
We use some non-standard python package in #1233, so we must make sure it available before run the test. Fix #1252
1 parent 2c4d31f commit 9134376

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ report-gdb: report-gdb-@default_target@
178178
ifeq ($(SIM),qemu)
179179
SIM_PATH:=$(srcdir)/scripts/wrapper/qemu:$(srcdir)/scripts
180180
SIM_PREPARE:=PATH="$(SIM_PATH):$(INSTALL_DIR)/bin:$(PATH)" RISC_V_SYSROOT="$(SYSROOT)"
181-
SIM_STAMP:= stamps/build-qemu
181+
SIM_STAMP:= stamps/build-qemu stamps/install-python-package
182182
else
183183
ifeq ($(SIM),spike)
184184
# Using spike simulator.
@@ -872,6 +872,10 @@ stamps/build-pk64: $(PK_SRCDIR) stamps/build-gcc-newlib-stage2
872872
mkdir -p $(dir $@)
873873
date > $@
874874

875+
stamps/install-python-package:
876+
python3 -m pip install --user pyelftools
877+
date > $@
878+
875879
stamps/build-qemu: $(QEMU_SRCDIR) $(QEMU_SRC_GIT)
876880
rm -rf $@ $(notdir $@)
877881
mkdir $(notdir $@)

0 commit comments

Comments
 (0)