All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: "Laurent Vivier" <lvivier@redhat.com>,
	"Riku Voipio" <riku.voipio@iki.fi>,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Aleksandar Markovic" <amarkovic@wavecomp.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Aleksandar Rikalo" <aleksandar.rikalo@rt-rk.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Aurelien Jarno" <aurelien@aurel32.net>
Subject: [PULL 03/13] configure: linux-user doesn't need neither fdt nor slirp
Date: Thu, 20 Feb 2020 10:20:43 +0100	[thread overview]
Message-ID: <20200220092053.1510215-4-laurent@vivier.eu> (raw)
In-Reply-To: <20200220092053.1510215-1-laurent@vivier.eu>

From: Laurent Vivier <lvivier@redhat.com>

if softmmu is not enabled, we disable by default fdt and
slirp as they are only used by -softmmu targets.

A side effect is the git submodules are not cloned
if they are not needed.

Clone and build can be forced with --enable-fdt and
--enable-slirp.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190621130544.18860-1-lvivier@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 configure | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure b/configure
index 6f5d85094965..5f5f4befb9f6 100755
--- a/configure
+++ b/configure
@@ -4135,6 +4135,11 @@ elif test "$fdt" != "yes" ; then
   fdt=no
 fi
 
+# fdt is only required when building softmmu targets
+if test -z "$fdt" -a "$softmmu" != "yes" ; then
+    fdt="no"
+fi
+
 if test "$fdt" != "no" ; then
   fdt_libs="-lfdt"
   # explicitly check for libfdt_env.h as it is missing in some stable installs
@@ -6078,6 +6083,11 @@ fi
 ##########################################
 # check for slirp
 
+# slirp is only required when building softmmu targets
+if test -z "$slirp" -a "$softmmu" != "yes" ; then
+    slirp="no"
+fi
+
 case "$slirp" in
   "" | yes)
     if $pkg_config slirp; then
-- 
2.24.1



  parent reply	other threads:[~2020-02-20  9:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  9:20 [PULL 00/13] Linux user for 5.0 patches Laurent Vivier
2020-02-20  9:20 ` [PULL 01/13] linux-user: Implement membarrier syscall Laurent Vivier
2020-02-20  9:20 ` [PULL 02/13] linux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO Laurent Vivier
2020-02-20  9:20 ` Laurent Vivier [this message]
2020-02-20  9:20 ` [PULL 04/13] linux-user/strace: Improve output of various syscalls Laurent Vivier
2020-02-20  9:20 ` [PULL 05/13] configure: Avoid compiling system tools on user build by default Laurent Vivier
2020-02-20  9:20 ` [PULL 06/13] linux-user: Use `qemu_log' for non-strace logging Laurent Vivier
2020-02-20  9:20 ` [PULL 07/13] linux-user: Use `qemu_log' for strace Laurent Vivier
2020-02-20  9:20 ` [PULL 08/13] linux-user: remove gemu_log from the linux-user tree Laurent Vivier
2020-02-20  9:20 ` [PULL 09/13] linux-user: Add support for getting alsa timer version and id Laurent Vivier
2020-02-20  9:20 ` [PULL 10/13] linux-user: Add support for getting/setting specified alsa timer parameters using ioctls Laurent Vivier
2020-02-20  9:20 ` [PULL 11/13] linux-user: Add support for selecting alsa timer using ioctl Laurent Vivier
2020-02-20  9:20 ` [PULL 12/13] linux-user: Add support for getting/setting selected alsa timer parameters using ioctls Laurent Vivier
2020-02-20  9:20 ` [PULL 13/13] linux-user: Add support for selected alsa timer instructions " Laurent Vivier
2020-02-21 11:24 ` [PULL 00/13] Linux user for 5.0 patches 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=20200220092053.1510215-4-laurent@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=aleksandar.rikalo@rt-rk.com \
    --cc=amarkovic@wavecomp.com \
    --cc=aurelien@aurel32.net \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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 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.