mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
tests/docker: add debian-xtensa-cross image
Xtensa cpu supported: - dc232b - dc233c - csp Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
b4f396151b
commit
c72d9df181
31
tests/docker/dockerfiles/debian-xtensa-cross.docker
Normal file
31
tests/docker/dockerfiles/debian-xtensa-cross.docker
Normal file
|
@ -0,0 +1,31 @@
|
|||
#
|
||||
# Docker cross-compiler target
|
||||
#
|
||||
# This docker target builds on the debian stretch base image,
|
||||
# using a prebuilt toolchains for Xtensa cores from:
|
||||
# https://github.com/foss-xtensa/toolchain/releases
|
||||
#
|
||||
FROM debian:stretch-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
|
||||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
apt-get install -y --no-install-recommends \
|
||||
bison \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
flex \
|
||||
gettext \
|
||||
git \
|
||||
python-minimal
|
||||
|
||||
ENV CPU_LIST csp dc232b dc233c
|
||||
ENV TOOLCHAIN_RELEASE 2018.02
|
||||
|
||||
RUN for cpu in $CPU_LIST; do \
|
||||
curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \
|
||||
| tar -xzC /opt; \
|
||||
done
|
||||
|
||||
ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-csp-elf/bin
|
11
tests/tcg/xtensa/Makefile.include
Normal file
11
tests/tcg/xtensa/Makefile.include
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Makefile.include for xtensa targets
|
||||
#
|
||||
# The compilers can only be used for building system tests
|
||||
|
||||
ifeq ($(CONFIG_SOFTMMU),y)
|
||||
DOCKER_IMAGE=debian-xtensa-cross
|
||||
|
||||
# default to the dc232b cpu
|
||||
DOCKER_CROSS_COMPILER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-gcc
|
||||
DOCKER_CROSS_LINKER=/opt/2018.02/xtensa-dc232b-elf/bin/xtensa-dc232b-elf-ld
|
||||
endif
|
Loading…
Reference in a new issue