1# 2# Docker TriCore cross-compiler target 3# 4# This docker target builds on the debian Stretch base image. 5# 6# Copyright (c) 2018 Philippe Mathieu-Daudé 7# 8# SPDX-License-Identifier: GPL-2.0-or-later 9# 10FROM qemu/debian9 11 12MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org> 13 14RUN git clone --single-branch \ 15 https://github.com/bkoppelmann/tricore-binutils.git \ 16 /usr/src/binutils && \ 17 cd /usr/src/binutils && chmod +x missing && \ 18 CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \ 19 make && make install && \ 20 rm -rf /usr/src/binutils 21 22# This image isn't designed for building QEMU but building tests 23ENV QEMU_CONFIGURE_OPTS --disable-system --disable-user 24