Skip to content

Commit

Permalink
Merge pull request #1254 from riscv-collab/fix-1252
Browse files Browse the repository at this point in the history
Install pyelftools before testing
  • Loading branch information
kito-cheng authored May 23, 2023
2 parents 2c4d31f + 9134376 commit 66f3efb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 $@)
Expand Down

0 comments on commit 66f3efb

Please sign in to comment.