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
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>
17 DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
18 DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
28 libtest-harness-perl \
38 RUN git clone --single-branch \
39 https://github.com/bkoppelmann/tricore-binutils.git \
40 /usr/src/binutils && \
41 cd /usr/src/binutils && chmod +x missing && \
42 CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \
43 make && make install && \
44 rm -rf /usr/src/binutils
46 # This image can only build a very minimal QEMU as well as the tests
47 ENV DEF_TARGET_LIST tricore-softmmu
48 ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt