3265d1fc77
Binutils sometimes fail to build if bison is not installed: /bin/sh ./ylwrap `test -f arparse.y || echo ./`arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output -- -d ./ylwrap: 109: ./ylwrap: -d: not found (the correct invocation of ylwrap would have "bison -d" after the double dash). Work around by installing it in the container. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/596 Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211221111624.352804-1-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220105135009.1584676-34-alex.bennee@linaro.org>
49 lines
1.3 KiB
Docker
49 lines
1.3 KiB
Docker
#
|
|
# Docker TriCore cross-compiler target
|
|
#
|
|
# This docker target builds on the Debian Buster base image but
|
|
# doesn't inherit from the common one to avoid bringing in unneeded
|
|
# dependencies.
|
|
#
|
|
# Copyright (c) 2018 Philippe Mathieu-Daudé
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
FROM docker.io/library/debian:buster-slim
|
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
|
|
bison \
|
|
bzip2 \
|
|
ca-certificates \
|
|
ccache \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
libglib2.0-dev \
|
|
libpixman-1-dev \
|
|
libtest-harness-perl \
|
|
locales \
|
|
make \
|
|
ninja-build \
|
|
perl-base \
|
|
pkgconf \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
python3-wheel
|
|
|
|
RUN git clone --single-branch \
|
|
https://github.com/bkoppelmann/tricore-binutils.git \
|
|
/usr/src/binutils && \
|
|
cd /usr/src/binutils && chmod +x missing && \
|
|
CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \
|
|
make && make install && \
|
|
rm -rf /usr/src/binutils
|
|
|
|
# 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
|