From nobody Mon Feb 9 20:10:44 2026 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 Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1523833736653255.25154388217516; Sun, 15 Apr 2018 16:08:56 -0700 (PDT) Received: from localhost ([::1]:50421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7qlO-0000ee-MY for importer@patchew.org; Sun, 15 Apr 2018 19:08:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7qiP-0007E5-Q7 for qemu-devel@nongnu.org; Sun, 15 Apr 2018 19:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7qiO-00037G-Rn for qemu-devel@nongnu.org; Sun, 15 Apr 2018 19:05:45 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:40807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7qiO-00036Z-NZ for qemu-devel@nongnu.org; Sun, 15 Apr 2018 19:05:44 -0400 Received: by mail-qk0-x241.google.com with SMTP id o64so14721007qkl.7 for ; Sun, 15 Apr 2018 16:05:44 -0700 (PDT) Received: from x1.local ([138.117.48.212]) by smtp.gmail.com with ESMTPSA id 1sm9303173qtr.85.2018.04.15.16.05.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 16:05:43 -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=hNwq7kRKdX4VuUr8o5NJmmyTXcaGupyc/lw7bvCINhM=; b=jOBAknfEXp3R5Wo7q9ebNTqVqnJcVN6tJM6Tv5TXJc8/t1XWVkj4M1zH4e87ETe+Yv Msp+F2XCETSDSqhfNM6Wu9nOIzg0rPZ8tp5cpCqEPCtBu+rVb79MM9nATneMy/IodpOq ik97kAhaG3fWtovvdpCh6/uhGPif+RA4fA64Oqwtxb/VTjUjpS3275nb8skqTXOXuctJ i5roLkGaqWajv9gdYSyiCKxzuOX4DIfysohcJr7JrzI5dr3jcCWRe0DwIG7G8H81Lbzu LZbbgU+KincFf9I0G+kyflJoc8DCPV2+jTo6dz6yJnG+PMzx2kFJ9gyOsOsJBmxT5IQX hFrQ== 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=hNwq7kRKdX4VuUr8o5NJmmyTXcaGupyc/lw7bvCINhM=; b=OHJ1Q73JVKlaByt2nVTEmIcmf4vXnDGzcXZRfpXTwfJiliYVsk1ppVVJYrsvtIkDqs sdMIA0o5HGFTbBgAmGobiOY4dje2OKR5QGimG9c0Rgg6t/Y9/ED9L61jkGBF7Q//FUMq PPT/8sYh2XlVF4azo9Ri/KWBDB2EmdnrFXwyLm/x5g1UP1lvOCtrd1sEWJqI+ysjPxps 7vpx4w8KNIpni2OrunB5PzvDIFYzILHVpw6YjbqmnE+RAdsTMFvbeVAemkMe9CbhUhu8 Ko4Bv2Hz2BYvxeU9xbamTDvHPQkM0RSiOU9Zkn9Ho9ND86T+R0UQl44OtDQmPAoPI1s8 SqAw== X-Gm-Message-State: ALQs6tBOoeITGOlV5Y5NWRV9WSW/60fFatdtTmTx8f5jGrRu3WfdthEx CT1zFpmp6AQyJPTRhQuKLuw= X-Google-Smtp-Source: AIpwx4/RqXfoPznM52ihQ5N5sES5dgiE6n9s+gTzBCH6b620H2bdauSWpd2xOheYeXaIH4NCvoBm2w== X-Received: by 10.55.126.195 with SMTP id z186mr14689162qkc.4.1523833544205; Sun, 15 Apr 2018 16:05:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Paolo Bonzini , Stefan Hajnoczi , Eric Blake , Thomas Huth , Michael Tokarev Date: Sun, 15 Apr 2018 20:05:20 -0300 Message-Id: <20180415230522.24404-3-f4bug@amsat.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180415230522.24404-1-f4bug@amsat.org> References: <20180415230522.24404-1-f4bug@amsat.org> 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: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH 2/4] 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?Marc-Andr=C3=A9=20Lureau?= , YunQiang Su , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org 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 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 --- configure | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 162e804b49..056b391f22 100755 --- a/configure +++ b/configure @@ -3758,15 +3758,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" @@ -6307,7 +6306,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 @@ -7109,7 +7108,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 2.17.0