forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/stsquad/tags/pull-ci-updates-fo…
…r-softfreeze-180717-2' into staging Final CI updates for soft-freeze Tweaks from Paolo for J=x Travis compiles Bunch of updated cross-compile targets from Philippe Additional debug tools in travis image from Me # gpg: Signature made Tue 18 Jul 2017 11:00:26 BST # gpg: using RSA key 0xFBD0DB095A9E2A44 # gpg: Good signature from "Alex Bennée (Master Work Key) <[email protected]>" # Primary key fingerprint: 6685 AE99 E751 67BC AFC8 DF35 FBD0 DB09 5A9E 2A44 * remotes/stsquad/tags/pull-ci-updates-for-softfreeze-180717-2: (32 commits) docker: install clang since Shippable setup_ve() verify it is available docker: warn users to use newer debian8/debian9 base image docker: add debian Ports base image shippable: add win32/64 targets docker: add MXE (M cross environment) base image for MinGW-w64 shippable: add mips64el targets docker: add debian/mips64el image shippable: use debian/mips[eb] targets docker: add debian/mips[eb] images shippable: add powerpc target docker: add debian/powerpc based on Jessie docker: add 'apt-fake' script which generate fake debian packages docker: add qemu:debian-jessie based on outdated jessie release shippable: add x86_64 targets shippable: add ppc64el targets shippable: add armel targets docker: enable nettle to extend code coverage on arm64 docker: enable gcrypt to extend code coverage on amd64 docker: enable netmap to extend code coverage on amd64 docker: enable virgl to extend code coverage on amd64 ... Signed-off-by: Peter Maydell <[email protected]>
- Loading branch information
Showing
23 changed files
with
488 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Docker x86_64 target | ||
# | ||
# This docker target builds on the debian Stretch base image. Further | ||
# libraries which are not widely available are installed by hand. | ||
# | ||
FROM qemu:debian9 | ||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy qemu | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
libbz2-dev \ | ||
liblzo2-dev \ | ||
librdmacm-dev \ | ||
libsnappy-dev \ | ||
libvte-dev | ||
|
||
# virgl | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
libegl1-mesa-dev \ | ||
libepoxy-dev \ | ||
libgbm-dev | ||
RUN git clone git://anongit.freedesktop.org/virglrenderer /usr/src/virglrenderer | ||
RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --with-glx --disable-tests && make install | ||
|
||
# netmap | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
linux-headers-amd64 | ||
RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap | ||
RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install | ||
ENV QEMU_CONFIGURE_OPTS --enable-netmap | ||
|
||
# gcrypt | ||
ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS --enable-gcrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#! /bin/sh | ||
# | ||
# Generate fake debian package to resolve unimportant unmet dependencies held | ||
# by upstream multiarch broken packages. | ||
# | ||
# Copyright (c) 2017 Philippe Mathieu-Daudé <[email protected]> | ||
# | ||
# This work is licensed under the terms of the GNU GPL, version 2 | ||
# or (at your option) any later version. See the COPYING file in | ||
# the top-level directory. | ||
|
||
test $1 = "install" && shift 1 | ||
|
||
fake_install() | ||
{ | ||
echo "Generating fake $2 $1 $3 ..." | ||
(cd /var/cache/apt/archives | ||
(cat << 'EOF' | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 3.9.2 | ||
Package: NAME | ||
Version: VERSION | ||
Maintainer: [email protected] | ||
Architecture: any | ||
Multi-Arch: same | ||
Description: fake NAME | ||
EOF | ||
) | sed s/NAME/$2/g | sed s/VERSION/$3/g > $2.control | ||
equivs-build -a $1 $2.control 1>/dev/null 2>/dev/null | ||
dpkg -i --force-overwrite $2_$3_$1.deb | ||
) | ||
} | ||
|
||
try_install() | ||
{ | ||
name=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\1/") | ||
arch=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\2/") | ||
vers=$(echo $1|sed "s/\(.*\):\(.*\)=\(.*\)/\3/") | ||
apt-get install -q -yy $1 || fake_install $arch $name $vers | ||
} | ||
|
||
for package in $*; do | ||
try_install $package | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Docker armel cross-compiler target | ||
# | ||
# This docker target builds on the debian Stretch base image. | ||
# | ||
FROM qemu:debian9 | ||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
# Add the foreign architecture we want and install dependencies | ||
RUN dpkg --add-architecture armel && \ | ||
apt update | ||
RUN apt install -yy crossbuild-essential-armel | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy -a armel qemu | ||
|
||
# Specify the cross prefix for this image (see tests/docker/common.rc) | ||
ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabi- | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
libbz2-dev:armel \ | ||
liblzo2-dev:armel \ | ||
librdmacm-dev:armel \ | ||
libsnappy-dev:armel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Docker mips cross-compiler target | ||
# | ||
# This docker target builds on the debian Stretch base image. | ||
# | ||
FROM qemu:debian9 | ||
|
||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
# Add the foreign architecture we want and install dependencies | ||
RUN dpkg --add-architecture mips | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
gcc-mips-linux-gnu | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy -a mips qemu | ||
|
||
# Specify the cross prefix for this image (see tests/docker/common.rc) | ||
ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips-linux-gnu- | ||
|
||
# Install extra libraries to increase code coverage | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
libbz2-dev:mips \ | ||
liblzo2-dev:mips \ | ||
librdmacm-dev:mips \ | ||
libsnappy-dev:mips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Docker mips64el cross-compiler target | ||
# | ||
# This docker target builds on the debian Stretch base image. | ||
# | ||
|
||
FROM qemu:debian9 | ||
|
||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
# Add the foreign architecture we want and install dependencies | ||
RUN dpkg --add-architecture mips64el && \ | ||
apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
gcc-mips64el-linux-gnuabi64 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy -a mips64el qemu | ||
|
||
# Specify the cross prefix for this image (see tests/docker/common.rc) | ||
ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips64el-linux-gnuabi64- | ||
|
||
# Install extra libraries to increase code coverage | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
libbz2-dev:mips64el \ | ||
liblzo2-dev:mips64el \ | ||
librdmacm-dev:mips64el \ | ||
libsnappy-dev:mips64el |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# | ||
# Docker mipsel cross-compiler target | ||
# | ||
# This docker target builds on the base debian image. | ||
# This docker target builds on the debian Stretch base image. | ||
# | ||
FROM qemu:debian | ||
FROM qemu:debian9 | ||
|
||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
# Add the foreign architecture we want and install dependencies | ||
RUN dpkg --add-architecture mipsel | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
crossbuild-essential-mipsel | ||
gcc-mipsel-linux-gnu | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy -a mipsel qemu | ||
|
||
# Specify the cross prefix for this image (see tests/docker/common.rc) | ||
ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu- | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get build-dep -yy -a mipsel qemu | ||
# Install extra libraries to increase code coverage | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
glusterfs-common:mipsel \ | ||
libbz2-dev:mipsel \ | ||
liblzo2-dev:mipsel \ | ||
libncursesw5-dev:mipsel \ | ||
libnfs-dev:mipsel \ | ||
librdmacm-dev:mipsel \ | ||
libsnappy-dev:mipsel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# Docker multiarch cross-compiler target | ||
# | ||
# This docker target is builds on Debian Ports cross compiler targets | ||
# to build distro with a selection of cross compilers for building test binaries. | ||
# | ||
# On its own you can't build much but the docker-foo-cross targets | ||
# build on top of the base debian image. | ||
# | ||
FROM debian:unstable | ||
|
||
MAINTAINER Philippe Mathieu-Daudé <[email protected]> | ||
|
||
RUN echo "deb [arch=amd64] http://deb.debian.org/debian unstable main" > /etc/apt/sources.list | ||
|
||
# Duplicate deb line as deb-src | ||
RUN cat /etc/apt/sources.list | sed -ne "s/^deb\ \(\[.*\]\ \)\?\(.*\)/deb-src \2/p" >> /etc/apt/sources.list | ||
|
||
# Setup some basic tools we need | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata | ||
RUN DEBIAN_FRONTEND=noninteractive eatmydata \ | ||
apt-get install -y --no-install-recommends \ | ||
bison \ | ||
build-essential \ | ||
ca-certificates \ | ||
clang \ | ||
debian-ports-archive-keyring \ | ||
flex \ | ||
git \ | ||
pkg-config \ | ||
psmisc \ | ||
python \ | ||
texinfo \ | ||
$(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\ -f2) |
Oops, something went wrong.