]>
Commit | Line | Data |
---|---|---|
36dc5fed PMD |
1 | # |
2 | # Docker TriCore cross-compiler target | |
3 | # | |
39ce9237 AB |
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 | |
6 | # dependencies. | |
36dc5fed PMD |
7 | # |
8 | # Copyright (c) 2018 Philippe Mathieu-Daudé | |
9 | # | |
10 | # SPDX-License-Identifier: GPL-2.0-or-later | |
11 | # | |
39ce9237 | 12 | FROM docker.io/library/debian:buster-slim |
36dc5fed PMD |
13 | |
14 | MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org> | |
15 | ||
39ce9237 AB |
16 | RUN apt update && \ |
17 | DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ | |
18 | DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \ | |
3265d1fc | 19 | bison \ |
39ce9237 AB |
20 | bzip2 \ |
21 | ca-certificates \ | |
22 | ccache \ | |
3c471b07 | 23 | curl \ |
7ac17cb8 | 24 | flex \ |
39ce9237 AB |
25 | g++ \ |
26 | gcc \ | |
27 | git \ | |
28 | libglib2.0-dev \ | |
29 | libpixman-1-dev \ | |
39ce9237 AB |
30 | locales \ |
31 | make \ | |
32 | ninja-build \ | |
39ce9237 AB |
33 | pkgconf \ |
34 | python3-pip \ | |
35 | python3-setuptools \ | |
a22a4b29 JS |
36 | python3-wheel \ |
37 | python3-venv | |
39ce9237 | 38 | |
3c471b07 BK |
39 | RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download/tricore-toolchain-9.40/tricore-toolchain-9.4.0.tar.gz \ |
40 | | tar -xzC /usr/local/ | |
36dc5fed | 41 | |
39ce9237 AB |
42 | # This image can only build a very minimal QEMU as well as the tests |
43 | ENV DEF_TARGET_LIST tricore-softmmu | |
44 | ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt | |
93bd2954 AB |
45 | # As a final step configure the user (if env is defined) |
46 | ARG USER | |
47 | ARG UID | |
48 | RUN if [ "${USER}" ]; then \ | |
49 | id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi |