tests/docker: pin powerpc-user-cross to a snapshot
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 9 Sep 2019 10:11:49 +0000 (11:11 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 10 Sep 2019 13:14:31 +0000 (14:14 +0100)
Now Jessie has entered LTS the powerpc architecture has been dropped
so we can no longer build the image from scratch. However we can use
the snapshot archive to build the last working version.

This now only lives on an example of setting up a user-cross image as
at least on x86-64 we can use the Buster packaged cross compiler for
building test images.

Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/docker/Makefile.include
tests/docker/dockerfiles/debian-powerpc-user-cross.docker

index b6c0405950248eff95f86e3974fa9a23cc4934a0..b06716ff71c7f454398bacca8e774f44e917c85d 100644 (file)
@@ -71,7 +71,8 @@ docker-binfmt-image-debian-%: $(DOCKER_FILES_DIR)/debian-bootstrap.docker
        $(if $(wildcard $(EXECUTABLE)),                                         \
                $(call quiet-command,                                           \
                        DEB_ARCH=$(DEB_ARCH)                                    \
-                       DEB_TYPE=$(DEB_TYPE)                                    \
+                       DEB_TYPE=$(DEB_TYPE)                                    \
+                       $(if $(DEB_URL),DEB_URL=$(DEB_URL),)                    \
                        $(DOCKER_SCRIPT) build qemu:debian-$* $<                \
                        $(if $V,,--quiet) $(if $(NOCACHE),--no-cache)           \
                        $(if $(NOUSER),,--add-current-user)                     \
@@ -130,6 +131,7 @@ DOCKER_PARTIAL_IMAGES += fedora-cris-cross
 # broken so we need a qemu-linux-user for this target
 docker-binfmt-image-debian-powerpc-user: DEB_ARCH = powerpc
 docker-binfmt-image-debian-powerpc-user: DEB_TYPE = jessie
+docker-binfmt-image-debian-powerpc-user: DEB_URL = http://snapshot.debian.org/archive/debian/20180615T211437Z
 docker-binfmt-image-debian-powerpc-user: EXECUTABLE = ${BUILD_DIR}/ppc-linux-user/qemu-ppc
 docker-image-debian-powerpc-user-cross: docker-binfmt-image-debian-powerpc-user
 DOCKER_USER_IMAGES += debian-powerpc-user
index 6938a845ee230ae7b4139fbc744f8de09587be39..83749b0abb875ff139e757dd8781ba6188e8ae58 100644 (file)
@@ -8,8 +8,14 @@
 # debootstrapped qemu:debian-powerpc-user but doesn't need any extra
 # magic once it is setup.
 #
+# It can be used to build old versions of QEMU, current versions need
+# newer dependencies than Jessie provides.
+#
 FROM qemu:debian-powerpc-user
 
 RUN echo man-db man-db/auto-update boolean false | debconf-set-selections
 RUN apt-get update && \
-    DEBIAN_FRONTEND=noninteractive apt-get build-dep -yy qemu
+        DEBIAN_FRONTEND=noninteractive apt-get build-dep -yy qemu
+
+ENV QEMU_CONFIGURE_OPTS --disable-werror
+ENV DEF_TARGET_LIST powerpc-softmmu,arm-linux-user,aarch64-linux-user