]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson.build: Use a function from libfdt 1.5.1 for the library check
authorThomas Huth <thuth@redhat.com>
Tue, 18 Jan 2022 17:05:48 +0000 (18:05 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Jan 2022 11:08:53 +0000 (12:08 +0100)
The fdt version test in meson.build uses a function from libfdt v1.4.7,
but we require version 1.5.1 nowadays. Thus use a function that has
been introduced in that version instead.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/822
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220118170548.97288-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build

index 833fd6bc4ca1497b0ab4cbb8cf5e63da1adc782e..4429fd2041f89ef9acefc148972ee6c3a3672eed 100644 (file)
@@ -2279,7 +2279,7 @@ if have_system
     if fdt.found() and cc.links('''
        #include <libfdt.h>
        #include <libfdt_env.h>
-       int main(void) { fdt_check_full(NULL, 0); return 0; }''',
+       int main(void) { fdt_find_max_phandle(NULL, NULL); return 0; }''',
          dependencies: fdt)
       fdt_opt = 'system'
     elif fdt_opt == 'system'