From nobody Thu Oct 30 15:33:08 2025 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.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1525818617340697.9224655738074; Tue, 8 May 2018 15:30:17 -0700 (PDT) Received: from localhost ([::1]:53589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGB7g-0000Vh-Cy for importer@patchew.org; Tue, 08 May 2018 18:30:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGAtG-0003Hi-LJ for qemu-devel@nongnu.org; Tue, 08 May 2018 18:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGAtF-0001c2-K6 for qemu-devel@nongnu.org; Tue, 08 May 2018 18:15:22 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:55004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGAtF-0001bV-DH for qemu-devel@nongnu.org; Tue, 08 May 2018 18:15:21 -0400 Received: by mail-wm0-x236.google.com with SMTP id f6so21244003wmc.4 for ; Tue, 08 May 2018 15:15:21 -0700 (PDT) Received: from 640k.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id c15-v6sm14020129edr.78.2018.05.08.15.15.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 15:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WMrbAR/Bg06RWuNKjX5hROcigpxuEq1sK5IOKbeQQhQ=; b=U4HgVZQ9ObnMt9UCs59l54M7EXF8YQK60t38Ilw9AoL+8KIewYWypyJUarlLgfm/KG jNOu0jAZAnisF7McoguPsx4HQdNG9SxtYHH+G8LwrPzF+XTcVIDDLmlE+hkmjdzBZbQ6 MR2GbzMzBjA2BUDXixS0HTJrHha8vY/0Lr/DC6rvTNGROofb8MOct1hnFIXz9638jE8K GvqVpTbiD6v9v+7OwscRz1HDS9dh+Se/pTGTGkZQNkrkhbqO7ndbcz28ReNfxWBKW35x Bhz60ozPWl32YCaxwBdPr0ulChDtfrLwLU4yMGfdZDJBLVDbhF7rMqx+/rfoMkPIbTDx oItA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=WMrbAR/Bg06RWuNKjX5hROcigpxuEq1sK5IOKbeQQhQ=; b=gojk1kmCrMx5RkrYY86IcnUrlTLSb7wcXM0fy0nzVRsNfFFV33iYQEG7e53aRZiFge wRZtLHuMjn17FhNwUPkp8ly5Zz13mFxt1Ui6cMbEKH++nV49aZfoR+8BzQxbdSdYnhDb y4uH5evH1SnDcuVtENH7mXiLNp51vWuTv0tU4w5kqVdM5IqHm4wdhWNb9x48U19uEvki TrGBGat/zoU0Xe0Ugo2Zn+tsxjhGymyzAMoOgBJHCaKVcdLYFrskD83FdQa3+kpMda18 vtoTY+yuuO+lUlqJU3ukKU/d40cHtkWKRxKuq1GSNMroqgECT/+3celeMOGsoASQxx4s j3Rg== X-Gm-Message-State: ALQs6tAWqXdt55OlA4j2kwoWxkpk4oE+M6FKUAUuigRKTLtbNQ4/CHMc gvkI8/7eETnS++N5nQfx8qRjqyRK X-Google-Smtp-Source: AB8JxZqtNIJmoC+zYZCaplAI6lrKnOmNRu3S4cVDu39ybgjYDkzENvQGTKjwo6nFU0DHiIvnEh1NfA== X-Received: by 2002:a50:c252:: with SMTP id t18-v6mr57202356edf.135.1525817720201; Tue, 08 May 2018 15:15:20 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 9 May 2018 00:14:43 +0200 Message-Id: <1525817687-34620-27-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1525817687-34620-1-git-send-email-pbonzini@redhat.com> References: <1525817687-34620-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 Subject: [Qemu-devel] [PULL 26/30] configure: Display if libfdt is from system or git 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: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 The configure script outputs "yes" regardless which libfdt is used: ./configure [...] fdt support yes Sometimes you can have both system and local git version available, change the configure script to display which library got selected: debian8$ dpkg-query --showformat=3D'${Version}\n' --show libfdt-dev 1.4.0+dfsg-1 debian8$ ./configure [...] fdt support git Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20180415230522.24404-3-f4bug@amsat.org> Signed-off-by: Paolo Bonzini --- configure | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 43756dc..407bf84 100755 --- a/configure +++ b/configure @@ -3785,15 +3785,14 @@ int main(void) { fdt_first_subnode(0, 0); return 0;= } EOF if compile_prog "" "$fdt_libs" ; then # system DTC is good - use it - fdt=3Dyes + fdt=3Dsystem else # have GIT checkout, so activate dtc submodule if test -e "${source_path}/.git" ; then git_submodules=3D"${git_submodules} dtc" fi if test -d "${source_path}/dtc/libfdt" || test -e "${source_path}/.g= it" ; then - fdt=3Dyes - dtc_internal=3D"yes" + fdt=3Dgit mkdir -p dtc if [ "$pwd_is_source_path" !=3D "y" ] ; then symlink "$source_path/dtc/Makefile" "dtc/Makefile" @@ -6334,7 +6333,7 @@ fi if test "$preadv" =3D "yes" ; then echo "CONFIG_PREADV=3Dy" >> $config_host_mak fi -if test "$fdt" =3D "yes" ; then +if test "$fdt" !=3D "no" ; then echo "CONFIG_FDT=3Dy" >> $config_host_mak fi if test "$membarrier" =3D "yes" ; then @@ -7136,7 +7135,7 @@ echo "QEMU_CFLAGS+=3D$cflags" >> $config_target_mak =20 done # for target in $targets =20 -if [ "$dtc_internal" =3D "yes" ]; then +if [ "$fdt" =3D "git" ]; then echo "config-host.h: subdir-dtc" >> $config_host_mak fi if [ "$capstone" =3D "git" -o "$capstone" =3D "internal" ]; then --=20 1.8.3.1