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
|
|
|
|
#
|
2021-07-21 02:27:01 +03:00
|
|
|
FROM docker.io/library/debian:buster-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 \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libglib2.0-dev \
|
|
|
|
libpixman-1-dev \
|
|
|
|
locales \
|
|
|
|
make \
|
|
|
|
ninja-build \
|
|
|
|
perl-base \
|
|
|
|
pkgconf \
|
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
|
|
|
python3-wheel
|
|
|
|
|
2018-05-02 03:21:43 +03:00
|
|
|
RUN git clone --single-branch \
|
|
|
|
https://github.com/bkoppelmann/tricore-binutils.git \
|
|
|
|
/usr/src/binutils && \
|
|
|
|
cd /usr/src/binutils && chmod +x missing && \
|
2021-07-21 02:27:01 +03:00
|
|
|
CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \
|
2018-05-02 03:21:43 +03:00
|
|
|
make && make install && \
|
|
|
|
rm -rf /usr/src/binutils
|
|
|
|
|
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
|