gitlab: enable a very minimal build with the tricore container
[qemu/ar7.git] / tests / docker / dockerfiles / debian-tricore-cross.docker
blobd8df2c61170673dcbd34ab11dc9767b6e6397aeb
2 # Docker TriCore cross-compiler target
4 # This docker target builds on the Debian Buster base image but
5 # doesn't inherit from the common one to avoid bringing in unneeded
6 # dependencies.
8 # Copyright (c) 2018 Philippe Mathieu-Daudé
10 # SPDX-License-Identifier: GPL-2.0-or-later
12 FROM docker.io/library/debian:buster-slim
14 MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
16 RUN apt update && \
17     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
18     DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
19        bzip2 \
20        ca-certificates \
21        ccache \
22        g++ \
23        gcc \
24        git \
25        libglib2.0-dev \
26        libpixman-1-dev \
27        libtest-harness-perl \
28        locales \
29        make \
30        ninja-build \
31        perl-base \
32        pkgconf \
33        python3-pip \
34        python3-setuptools \
35        python3-wheel
37 RUN git clone --single-branch \
38         https://github.com/bkoppelmann/tricore-binutils.git \
39         /usr/src/binutils && \
40     cd /usr/src/binutils && chmod +x missing && \
41     CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \
42     make && make install && \
43     rm -rf /usr/src/binutils
45 # This image can only build a very minimal QEMU as well as the tests
46 ENV DEF_TARGET_LIST tricore-softmmu
47 ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt