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:11-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 \
39 RUN /usr/bin/pip3 install tomli
41 RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download/tricore-toolchain-9.40/tricore-toolchain-9.4.0.tar.gz \
42 | tar -xzC /usr/local/
44 # This image can only build a very minimal QEMU as well as the tests
45 ENV DEF_TARGET_LIST tricore-softmmu
46 ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt
47 # As a final step configure the user (if env is defined)
50 RUN if [ "${USER}" ]; then \
51 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi