From: "Alex Bennée" <alex.bennee@linaro.org>
To: peter.maydell@linaro.org
Cc: qemu-devel@nongnu.org, berrange@redhat.com,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: [Qemu-devel] [PULL 2/6] configure: add test for docker availability
Date: Tue, 5 Jun 2018 17:05:37 +0100 [thread overview]
Message-ID: <20180605160541.10664-3-alex.bennee@linaro.org> (raw)
In-Reply-To: <20180605160541.10664-1-alex.bennee@linaro.org>
This tests for a working docker installation without sudo and sets up
config-host.mak accordingly. This will be useful from cross compiling
things in the future.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
diff --git a/configure b/configure
index ab810d728f..db8c9d8288 100755
--- a/configure
+++ b/configure
@@ -456,6 +456,7 @@ jemalloc="no"
replication="yes"
vxhs=""
libxml2=""
+docker="no"
supported_cpu="no"
supported_os="no"
@@ -5450,6 +5451,17 @@ EOF
fi
fi
+##########################################
+# Docker and cross-compiler support
+#
+# This is specifically for building test
+# cases for foreign architectures, not
+# cross-compiling QEMU itself.
+
+if has "docker"; then
+ docker=$($python $source_path/tests/docker/docker.py probe)
+fi
+
##########################################
# End of CC checks
# After here, no more $cc or $ld runs
@@ -5913,6 +5925,7 @@ echo "avx2 optimization $avx2_opt"
echo "replication support $replication"
echo "VxHS block device $vxhs"
echo "capstone $capstone"
+echo "docker $docker"
if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -6740,6 +6753,10 @@ if test "$gcov" = "yes" ; then
echo "GCOV=$gcov_tool" >> $config_host_mak
fi
+if test "$docker" != "no"; then
+ echo "HAVE_USER_DOCKER=y" >> $config_host_mak
+fi
+
# use included Linux headers
if test "$linux" = "yes" ; then
mkdir -p linux-headers
--
2.17.0
next prev parent reply other threads:[~2018-06-05 16:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 16:05 [Qemu-devel] [PULL 0/6] Some docker updates Alex Bennée
2018-06-05 16:05 ` [Qemu-devel] [PULL 1/6] docker: add "probe" command for configure Alex Bennée
2018-06-05 16:05 ` Alex Bennée [this message]
2018-06-05 16:05 ` [Qemu-devel] [PULL 3/6] Makefile: Rename TARGET_DIRS to TARGET_LIST Alex Bennée
2018-06-28 16:11 ` Paolo Bonzini
2018-06-28 16:27 ` Alex Bennée
2018-06-29 12:06 ` Alex Bennée
2018-06-05 16:05 ` [Qemu-devel] [PULL 4/6] docker: Add fedora-i386-cross image Alex Bennée
2018-06-05 16:05 ` [Qemu-devel] [PULL 5/6] docker: test-mingw: use SDL2 and GTK+3 Alex Bennée
2018-06-05 16:05 ` [Qemu-devel] [PULL 6/6] docker: add debian/tricore image Alex Bennée
2018-06-07 7:59 ` [Qemu-devel] [PULL 0/6] Some docker updates Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180605160541.10664-3-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=berrange@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).