* [Qemu-devel] [RFC PATCH] docker: add debian/tricore image
@ 2018-05-02 0:21 Philippe Mathieu-Daudé
2018-05-26 5:10 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-02 0:21 UTC (permalink / raw)
To: Bastian Koppelmann, Alex Bennée, Fam Zheng
Cc: Philippe Mathieu-Daudé,
qemu-devel, David Brenken, Florian Artmeier, Georg Hofstetter
TriCore binutils is built from Bastian Koppelmann repository.
Note: There is no TriCore compiler in this image (only assembler/linker).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
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
diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
new file mode 100644
index 0000000000..f71ac3eb47
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
@@ -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é <f4bug@amsat.org>
+
+# 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-
--
2.17.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [RFC PATCH] docker: add debian/tricore image
2018-05-02 0:21 [Qemu-devel] [RFC PATCH] docker: add debian/tricore image Philippe Mathieu-Daudé
@ 2018-05-26 5:10 ` Philippe Mathieu-Daudé
2018-06-04 13:05 ` Alex Bennée
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-26 5:10 UTC (permalink / raw)
To: Bastian Koppelmann, Alex Bennée, Fam Zheng
Cc: qemu-devel, David Brenken, Florian Artmeier, Georg Hofstetter
Hi Alex, ping for review ;)
On 05/01/2018 09:21 PM, Philippe Mathieu-Daudé wrote:
> TriCore binutils is built from Bastian Koppelmann repository.
>
> Note: There is no TriCore compiler in this image (only assembler/linker).
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> 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
>
> diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
> new file mode 100644
> index 0000000000..f71ac3eb47
> --- /dev/null
> +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
> @@ -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é <f4bug@amsat.org>
> +
> +# 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-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [RFC PATCH] docker: add debian/tricore image
2018-05-26 5:10 ` Philippe Mathieu-Daudé
@ 2018-06-04 13:05 ` Alex Bennée
0 siblings, 0 replies; 3+ messages in thread
From: Alex Bennée @ 2018-06-04 13:05 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Bastian Koppelmann, Fam Zheng, qemu-devel, David Brenken,
Florian Artmeier, Georg Hofstetter
Philippe Mathieu-Daudé <f4bug@amsat.org> writes:
> Hi Alex, ping for review ;)
queued, thanks.
>
> On 05/01/2018 09:21 PM, Philippe Mathieu-Daudé wrote:
>> TriCore binutils is built from Bastian Koppelmann repository.
>>
>> Note: There is no TriCore compiler in this image (only assembler/linker).
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>> 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
>>
>> diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
>> new file mode 100644
>> index 0000000000..f71ac3eb47
>> --- /dev/null
>> +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
>> @@ -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é <f4bug@amsat.org>
>> +
>> +# 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-
>>
--
Alex Bennée
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-04 13:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 0:21 [Qemu-devel] [RFC PATCH] docker: add debian/tricore image Philippe Mathieu-Daudé
2018-05-26 5:10 ` Philippe Mathieu-Daudé
2018-06-04 13:05 ` Alex Bennée
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.