From nobody Mon Apr 29 11:49:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1489748959882705.2024609526102; Fri, 17 Mar 2017 04:09:19 -0700 (PDT) Received: from localhost ([::1]:48238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1copl0-0001Na-PB for importer@patchew.org; Fri, 17 Mar 2017 07:09:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1copkH-0001LD-UL for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:08:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1copkG-00087f-LG for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:08:33 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:48853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1copkG-000854-E5 for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:08:32 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1copk7-0004iK-Aq; Fri, 17 Mar 2017 11:08:23 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 17 Mar 2017 11:08:22 +0000 Message-Id: <1489748902-21765-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PATCH] configure: Warn about deprecated hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , patches@linaro.org, Paolo Bonzini , Aurelien Jarno , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We plan to drop support in a future QEMU release for host OSes and host architectures for which we have no test machine where we can build and run tests. For the 2.9 release, make configure print a warning if it is run on such a host, so that the user has some warning of the plans and can volunteer to help us maintain the port if they need it to continue to function. This commit flags up as deprecated the CPU architectures: * ia64 * sparc * anything which we don't have a TCG port for (and which was presumably using TCI) and the OSes: * Cygwin * GNU/kFreeBSD * FreeBSD * DragonFly BSD * NetBSD * OpenBSD * Solaris * AIX * Haiku It also makes entirely unrecognized host OS strings be rejected rather than treated as if they were Linux (which likely never worked). Signed-off-by: Peter Maydell --- This list is definitely too all-encompassing, and we should move at least some of the BSDs into "not-deprecated". I'm posting the patch for the moment for code review on the logic and as a placeholder. --- configure | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 75c7c35..5ddc985 100755 --- a/configure +++ b/configure @@ -321,6 +321,9 @@ tcmalloc=3D"no" jemalloc=3D"no" replication=3D"yes" =20 +supported_cpu=3D"no" +supported_os=3D"no" + # parse CC options first for opt do optarg=3D$(expr "x$opt" : 'x[^=3D]*=3D\(.*\)') @@ -517,23 +520,32 @@ ARCH=3D # Normalise host CPU name and set ARCH. # Note that this case should only have supported host CPUs, not guests. case "$cpu" in - ia64|ppc|ppc64|s390|s390x|sparc64|x32) + ppc|ppc64|s390|s390x|x32) + cpu=3D"$cpu" + supported_cpu=3D"yes" + ;; + ia64|sparc64) cpu=3D"$cpu" ;; i386|i486|i586|i686|i86pc|BePC) cpu=3D"i386" + supported_cpu=3D"yes" ;; x86_64|amd64) cpu=3D"x86_64" + supported_cpu=3D"yes" ;; armv*b|armv*l|arm) cpu=3D"arm" + supported_cpu=3D"yes" ;; aarch64) cpu=3D"aarch64" + supported_cpu=3D"yes" ;; mips*) cpu=3D"mips" + supported_cpu=3D"yes" ;; sparc|sun4[cdmuv]) cpu=3D"sparc" @@ -568,6 +580,7 @@ MINGW32*) else audio_drv_list=3D"" fi + supported_os=3D"yes" ;; GNU/kFreeBSD) bsd=3D"yes" @@ -626,6 +639,7 @@ Darwin) # won't work when we're compiling with gcc as a C compiler. QEMU_CFLAGS=3D"-DOS_OBJECT_USE_OBJC=3D0 $QEMU_CFLAGS" HOST_VARIANT_DIR=3D"darwin" + supported_os=3D"yes" ;; SunOS) solaris=3D"yes" @@ -672,7 +686,7 @@ Haiku) QEMU_CFLAGS=3D"-DB_USE_POSITIVE_POSIX_ERRORS $QEMU_CFLAGS" LIBS=3D"-lposix_error_mapper -lnetwork $LIBS" ;; -*) +Linux) audio_drv_list=3D"oss" audio_possible_drivers=3D"oss alsa sdl pa" linux=3D"yes" @@ -682,6 +696,10 @@ Haiku) vhost_scsi=3D"yes" vhost_vsock=3D"yes" QEMU_INCLUDES=3D"-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QE= MU_INCLUDES" + supported_os=3D"yes" +;; +*) + error_exit "Unsupported host OS $targetos" ;; esac =20 @@ -5095,6 +5113,32 @@ if test "$sdl_too_old" =3D "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" fi =20 +if test "$supported_cpu" =3D "no"; then + echo + echo "WARNING: SUPPORT FOR THIS HOST CPU WILL GO AWAY IN FUTURE RELEAS= ES!" + echo + echo "CPU host architecture $cpu support is not currently maintained." + echo "The QEMU project intends to remove support for this host CPU in" + echo "a future release if nobody volunteers to maintain it and to" + echo "provide a build host for our continuous integration setup." + echo "configure has succeeded and you can continue to build, but" + echo "if you care about QEMU on this platform you should contact" + echo "us upstream at qemu-devel@nongnu.org." +fi + +if test "$supported_os" =3D "no"; then + echo + echo "WARNING: SUPPORT FOR THIS HOST OS WILL GO AWAY IN FUTURE RELEASE= S!" + echo + echo "CPU host OS $targetos support is not currently maintained." + echo "The QEMU project intends to remove support for this host CPU in" + echo "a future release if nobody volunteers to maintain it and to" + echo "provide a build host for our continuous integration setup." + echo "configure has succeeded and you can continue to build, but" + echo "if you care about QEMU on this platform you should contact" + echo "us upstream at qemu-devel@nongnu.org." +fi + config_host_mak=3D"config-host.mak" =20 echo "# Automatically generated by configure - do not modify" >config-all-= disas.mak --=20 2.7.4