2018-05-02 03:21:43 +03:00
|
|
|
#
|
|
|
|
# Docker TriCore cross-compiler target
|
|
|
|
#
|
2021-07-21 02:27:01 +03:00
|
|
|
# This docker target builds on the Debian Buster base image but
|
|
|
|
# doesn't inherit from the common one to avoid bringing in unneeded
|
|
|
|
# dependencies.
|
2018-05-02 03:21:43 +03:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Philippe Mathieu-Daudé
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#
|
2023-08-08 17:02:57 +03:00
|
|
|
FROM docker.io/library/debian:11-slim
|
2018-05-02 03:21:43 +03:00
|
|
|
|
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
|
2021-07-21 02:27:01 +03:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
|
2022-01-05 16:50:08 +03:00
|
|
|
bison \
|
2021-07-21 02:27:01 +03:00
|
|
|
bzip2 \
|
|
|
|
ca-certificates \
|
|
|
|
ccache \
|
2023-02-28 22:06:40 +03:00
|
|
|
curl \
|
2023-01-24 21:01:05 +03:00
|
|
|
flex \
|
2021-07-21 02:27:01 +03:00
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libglib2.0-dev \
|
|
|
|
libpixman-1-dev \
|
|
|
|
locales \
|
|
|
|
make \
|
|
|
|
ninja-build \
|
|
|
|
pkgconf \
|
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
2023-05-11 06:54:19 +03:00
|
|
|
python3-wheel \
|
|
|
|
python3-venv
|
2021-07-21 02:27:01 +03:00
|
|
|
|
2023-08-09 00:35:47 +03:00
|
|
|
RUN /usr/bin/pip3 install tomli
|
|
|
|
|
2023-02-28 22:06:40 +03:00
|
|
|
RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download/tricore-toolchain-9.40/tricore-toolchain-9.4.0.tar.gz \
|
|
|
|
| tar -xzC /usr/local/
|
2018-05-02 03:21:43 +03:00
|
|
|
|
2021-07-21 02:27:01 +03:00
|
|
|
# This image can only build a very minimal QEMU as well as the tests
|
|
|
|
ENV DEF_TARGET_LIST tricore-softmmu
|
|
|
|
ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt
|
2023-02-28 22:06:48 +03:00
|
|
|
# As a final step configure the user (if env is defined)
|
|
|
|
ARG USER
|
|
|
|
ARG UID
|
|
|
|
RUN if [ "${USER}" ]; then \
|
|
|
|
id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
|