mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 09:02:00 -06:00
tests/tcg: enable building for RISCV64
As before, using Debian SID compilers. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
33b2c4b50f
commit
e100a96755
3 changed files with 23 additions and 0 deletions
|
@ -76,6 +76,7 @@ docker-image-debian-m68k-cross: docker-image-debian-sid
|
||||||
docker-image-debian-sh4-cross: docker-image-debian-sid
|
docker-image-debian-sh4-cross: docker-image-debian-sid
|
||||||
docker-image-debian-sparc64-cross: docker-image-debian-sid
|
docker-image-debian-sparc64-cross: docker-image-debian-sid
|
||||||
docker-image-debian-mips64-cross: docker-image-debian-sid
|
docker-image-debian-mips64-cross: docker-image-debian-sid
|
||||||
|
docker-image-debian-riscv64-cross: docker-image-debian-sid
|
||||||
docker-image-travis: NOUSER=1
|
docker-image-travis: NOUSER=1
|
||||||
|
|
||||||
# Specialist build images, sometimes very limited tools
|
# Specialist build images, sometimes very limited tools
|
||||||
|
|
12
tests/docker/dockerfiles/debian-riscv64-cross.docker
Normal file
12
tests/docker/dockerfiles/debian-riscv64-cross.docker
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#
|
||||||
|
# Docker cross-compiler target
|
||||||
|
#
|
||||||
|
# This docker target builds on the debian sid base image which
|
||||||
|
# contains cross compilers for Debian "ports" targets.
|
||||||
|
#
|
||||||
|
FROM qemu:debian-sid
|
||||||
|
|
||||||
|
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
gcc-riscv64-linux-gnu \
|
||||||
|
libc6-dev-riscv64-cross
|
10
tests/tcg/riscv/Makefile.include
Normal file
10
tests/tcg/riscv/Makefile.include
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#
|
||||||
|
# Makefile.include for all RISCV targets
|
||||||
|
#
|
||||||
|
# Debian only really cares about 64 bit going forward
|
||||||
|
#
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),riscv64)
|
||||||
|
DOCKER_IMAGE=debian-riscv64-cross
|
||||||
|
DOCKER_CROSS_COMPILER=riscv64-linux-gnu-gcc
|
||||||
|
endif
|
Loading…
Add table
Add a link
Reference in a new issue