Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements to QEMU Make step #1866

Merged
merged 3 commits into from
May 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,13 @@ audit:
emulation-setup: SHELL:=/usr/bin/env bash
emulation-setup:
@#Use the latest QEMU as it has OpenTitan support
@printf "Buildling QEMU, this could take a few minutes\n\n"
@if [[ ! -d tools/qemu || ! -f tools/qemu/VERSION ]]; then \
rm -rf tools/qemu; \
cd tools; git clone https://github.com/alistair23/qemu.git -b riscv-tock.next; \
cd tools; git clone https://github.com/alistair23/qemu.git --depth 1 -b riscv-tock.next; \
cd qemu; ./configure --target-list=riscv32-softmmu; \
fi
@$(MAKE) -C "tools/qemu" > /dev/null
@$(MAKE) -C "tools/qemu" || (echo "You might need to install some missing packages" || exit 127)
@printf "Downloading OpenTitan boot rom from: 2aedf641120665b91c3a5d5aa214175d09f71ee6\n"
$(eval CURRENT_DIR := $(shell pwd))
@pushd `mktemp -d -t`; \
Expand Down