Received: from eggs.gnu.org ([2001:4830:134:3::10]:39222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwhM5-0004WP-Ds for qemu-devel@nongnu.org; Sun, 24 May 2015 21:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwhM1-0001bs-Ki for qemu-devel@nongnu.org; Sun, 24 May 2015 21:39:01 -0400 Date: Mon, 25 May 2015 11:35:19 +1000 From: David Gibson Message-ID: <20150525013519.GH6255@voom.redhat.com> References: <1431935001-15678-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cW+P/jduATWpL925" Content-Disposition: inline In-Reply-To: <1431935001-15678-1-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH] configure: Check for libfdt version 1.4.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, aik@ozlabs.ru, mdroth@linux.vnet.ibm.com, Alexander Graf , qemu-ppc@nongnu.org, afaerber@suse.de --cW+P/jduATWpL925 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 18, 2015 at 09:43:21AM +0200, Thomas Huth wrote: > Some recent patches require functions from libfdt version 1.4.0, > so we should check for this version during the configure step > already. Unfortunately, there does not seem to be a proper #define > for the version number in the libfdt headers. So alternatively, we > check for the availability of the fdtXX_t types instead which have > just been introduced with version 1.4.0. Um.. I'm confused by this. As far as I can recall the fdtXX_t types have been in libfdt since.. well, forever, basically. >=20 > Signed-off-by: Thomas Huth > --- > configure | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/configure b/configure > index b18aa9e..87a5bbc 100755 > --- a/configure > +++ b/configure > @@ -3091,9 +3091,10 @@ fi > if test "$fdt" !=3D "no" ; then > fdt_libs=3D"-lfdt" > # explicitly check for libfdt_env.h as it is missing in some stable in= stalls > + # and also test for fdtXX_t to make sure we are on a version >=3D 1.4.0 > cat > $TMPC << EOF > #include > -int main(void) { return 0; } > +int main(void) { fdt32_t x =3D 0; return x; } > EOF > if compile_prog "" "$fdt_libs" ; then > # system DTC is good - use it > @@ -3111,7 +3112,7 @@ EOF > fdt_libs=3D"-L\$(BUILD_DIR)/dtc/libfdt $fdt_libs" > elif test "$fdt" =3D "yes" ; then > # have neither and want - prompt for system/submodule install > - error_exit "DTC (libfdt) not present. Your options:" \ > + error_exit "DTC (libfdt) version >=3D 1.4.0 not present. Your option= s:" \ > " (1) Preferred: Install the DTC (libfdt) devel package" \ > " (2) Fetch the DTC submodule, using:" \ > " git submodule update --init dtc" --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --cW+P/jduATWpL925 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVYnxXAAoJEGw4ysog2bOSWZgQAIWgdufduE4ZoXebrq89p7cN pQa1kLoazvKNlcKGrnBl15ZUg7MuLBNW8VdZwCcii4V7jvT6aIfvp80ZFv4nIPFx 28QeazRUlNMglfpo3mEnOfAcFgbdgP8ZFqqZd9An3zBoURvWOVap1fvarANJtiDm rW+ci5wg1acmf6g2NfXflW+Zx6uJ4iUxofnOu4lvC/7SmBE6nmUol9DH6w5Ds/Xz jGKqolH+3OKXOqOcxY2dxf6TM2RZhIEzNDBagDbW2J66s5ZYk62aPR8VoLY79jZc S4q3EJsTrsZnzIZ0twSni7VlizMehXxLxujlpRudWY9xAyFaSAh7ljpfuUcRJ8oX NWRhGCjulkRW4tI1im2nfW8tqFw6PUiGibkT7lulSOpnNVPCPZ1T4A/W+bde8iEN fKnnlD+lcvoq0TnHvjo+SzAEzA7jNE8W/eqJ1kmHw9M08y7XPy+dvV6ijYdyyNYB 4B3n/t131uwiF0eJutt5RG290tbXDykthiF6fuR7y/biJH85/xQNfaDrDwOFs4pJ YBCvjDyI9d3nV66lHMoFezeiIeinL+iBZrQZn9A/U8AedKfvKo1FnBqjQZGFYxTw BXa4B+dTBwsnpY2QtCAOh8YA9k81BIRiKxMrrEcK11/ELSKhnYB5tpLLDBFhi5aS C7oR0au2V2LJUSwiUFcU =fUjd -----END PGP SIGNATURE----- --cW+P/jduATWpL925--