Skip to contentSkip to conversation

docker: add debian/tricore image

RFC PATCH Applied Philippe Mathieu-Daudé 2 participants 3 messages May 2, 2018 – Jun 4, 2018

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 docker: add debian/tricore image

TriCore binutils is built from Bastian Koppelmann repository.

Note: There is no TriCore compiler in this image (only assembler/linker).

---
See http://lists.nongnu.org/archive/html/qemu-devel/2018-05/msg00074.html

$ docker images --format "{{.Repository}}:{{.Tag}} {{.Size}}"
qemu:debian-tricore-cross 323MB
 .../dockerfiles/debian-tricore-cross.docker   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 tests/docker/dockerfiles/debian-tricore-cross.docker
tests/docker/dockerfiles/debian-tricore-cross.docker new file +35 -0
new file mode 100644
index 0000000000..f71ac3eb47
@@ -0,0 +1,35 @@
+#
+# Docker TriCore cross-compiler target
+#
+# This docker target builds on the debian Stretch base image.
+#
+# Copyright (c) 2018 Philippe Mathieu-Daudé
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+FROM debian:stretch-slim
+
+MAINTAINER Philippe Mathieu-Daudé <[email protected]>
+
+# Install common build utilities
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \
+    DEBIAN_FRONTEND=noninteractive eatmydata \
+    apt-get install -y --no-install-recommends \
+        automake \
+        bison \
+        build-essential \
+        ca-certificates \
+        flex \
+        git
+
+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 --disable-nls --target=tricore && \
+    make && make install && \
+    rm -rf /usr/src/binutils
+
+# Specify the cross prefix for this image (see tests/docker/common.rc)
+ENV QEMU_CONFIGURE_OPTS --cross-prefix=tricore-
Signature · 1 line
2.17.0
#1 lore raw

Hi Alex, ping for review ;)

Quoted 57 lines · Philippe Mathieu-Daudé

TriCore binutils is built from Bastian Koppelmann repository.

Note: There is no TriCore compiler in this image (only assembler/linker).

---
See http://lists.nongnu.org/archive/html/qemu-devel/2018-05/msg00074.html

$ docker images --format "{{.Repository}}:{{.Tag}} {{.Size}}"
qemu:debian-tricore-cross 323MB
 .../dockerfiles/debian-tricore-cross.docker   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 tests/docker/dockerfiles/debian-tricore-cross.docker
tests/docker/dockerfiles/debian-tricore-cross.docker new file +35 -0
new file mode 100644
index 0000000000..f71ac3eb47
@@ -0,0 +1,35 @@
+#
+# Docker TriCore cross-compiler target
+#
+# This docker target builds on the debian Stretch base image.
+#
+# Copyright (c) 2018 Philippe Mathieu-Daudé
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+FROM debian:stretch-slim
+
+MAINTAINER Philippe Mathieu-Daudé <[email protected]>
+
+# Install common build utilities
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \
+    DEBIAN_FRONTEND=noninteractive eatmydata \
+    apt-get install -y --no-install-recommends \
+        automake \
+        bison \
+        build-essential \
+        ca-certificates \
+        flex \
+        git
+
+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 --disable-nls --target=tricore && \
+    make && make install && \
+    rm -rf /usr/src/binutils
+
+# Specify the cross prefix for this image (see tests/docker/common.rc)
+ENV QEMU_CONFIGURE_OPTS --cross-prefix=tricore-
Applied
#2 lore raw
Quoted 1 line · Philippe Mathieu-Daudé

Hi Alex, ping for review ;)

queued, thanks.

Quoted 51 lines · Philippe Mathieu-Daudé
Quoted 49 lines

TriCore binutils is built from Bastian Koppelmann repository.

Note: There is no TriCore compiler in this image (only assembler/linker).

---
See http://lists.nongnu.org/archive/html/qemu-devel/2018-05/msg00074.html

$ docker images --format "{{.Repository}}:{{.Tag}} {{.Size}}"
qemu:debian-tricore-cross 323MB
 .../dockerfiles/debian-tricore-cross.docker   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 tests/docker/dockerfiles/debian-tricore-cross.docker
tests/docker/dockerfiles/debian-tricore-cross.docker new file +28 -0
new file mode 100644
index 0000000000..f71ac3eb47
@@ -0,0 +1,35 @@
+#
+# Docker TriCore cross-compiler target
+#
+# This docker target builds on the debian Stretch base image.
+#
+# Copyright (c) 2018 Philippe Mathieu-Daudé
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+FROM debian:stretch-slim
+
+MAINTAINER Philippe Mathieu-Daudé <[email protected]>
+
+# Install common build utilities
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \
+    DEBIAN_FRONTEND=noninteractive eatmydata \
+    apt-get install -y --no-install-recommends \
+        automake \
+        bison \
+        build-essential \
+        ca-certificates \
+        flex \
+        git
+
+RUN git clone --single-branch \
+        https://github.com/bkoppelmann/tricore-binutils.git \
+        /usr/src/binutils && \
Quoted 8 lines

tests/docker/dockerfiles/debian-tricore-cross.docker line 35

Quoted 8 lines
tests/docker/dockerfiles/debian-tricore-cross.docker new file +7 -0
+    cd /usr/src/binutils && chmod +x missing && \
+    CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \
+    make && make install && \
+    rm -rf /usr/src/binutils
+
+# Specify the cross prefix for this image (see tests/docker/common.rc)
+ENV QEMU_CONFIGURE_OPTS --cross-prefix=tricore-

--
Alex Bennée