public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/1] Dockerfile: compile QEMU for Nokia N900 emulation
@ 2020-07-13 17:10 Heinrich Schuchardt
  2020-07-13 17:20 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Heinrich Schuchardt @ 2020-07-13 17:10 UTC (permalink / raw)
  To: u-boot

For the Nokia N900 emulation we need a special QEMU version. Up to now we
compile it in the Gitlab runner. By compiling it in Docker we can reduce
the Gitlab job duration.

To avoid naming conflicts the QEMU binary is stored as
/opt/qemu/bin/qemu-system-n900.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 Dockerfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 209e008..bc3cdee 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -171,6 +171,16 @@ RUN git clone git://git.qemu.org/qemu.git /tmp/qemu && \
 	make -j$(nproc) all install && \
 	rm -rf /tmp/qemu

+# Compile QEMU for Nokia N900 emulation
+# Last working commit is 8f8d8e0796efe1a6f34cdd83fb798f3c41217ec1
+RUN git clone https://git.linaro.org/qemu/qemu-linaro.git /tmp/qemu && \
+	cd /tmp/qemu && \
+	git checkout 8f8d8e0796efe1a6f34cdd83fb798f3c41217ec1 && \
+	./configure --enable-system --target-list=arm-softmmu --disable-sdl --disable-gtk --disable-curses --audio-drv-list= --audio-card-list= --disable-werror --disable-xen --disable-xen-pci-passthrough --disable-brlapi --disable-vnc --disable-curl --disable-slirp --disable-kvm --disable-user --disable-linux-user --disable-bsd-user --disable-guest-base --disable-uuid --disable-vde --disable-linux-aio --disable-cap-ng --disable-attr --disable-blobs --disable-docs --disable-spice --disable-libiscsi --disable-smartcard-nss --disable-usb-redir --disable-guest-agent --disable-seccomp --disable-glusterfs --disable-nptl --disable-fdt && \
+	make -j$(nproc) && \
+	cp arm-softmmu/qemu-system-arm /opt/qemu/bin/qemu-system-n900 && \
+	rm -rf /tmp/qemu
+
 # Create our user/group
 RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
 RUN useradd -m -U uboot
--
2.27.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-20 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13 17:10 [PATCH 1/1] Dockerfile: compile QEMU for Nokia N900 emulation Heinrich Schuchardt
2020-07-13 17:20 ` Tom Rini
2020-07-13 21:27   ` Heinrich Schuchardt
2020-07-13 22:56     ` Tom Rini
2021-01-20 18:57       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox