libfdt: fix library version to match project version
Build the libfdt with the correct version number by pulling the version
from the top-level project.
Change as suggested from https://github.com/dgibson/dtc/pull/95#issuecomment-1546933095
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
diff --git a/libfdt/meson.build b/libfdt/meson.build
index e1bf083..2ea1448 100644
--- a/libfdt/meson.build
+++ b/libfdt/meson.build
@@ -28,7 +28,7 @@
link_args += version_script
libfdt = library(
'fdt', sources,
- version: '1.6.0',
+ version: meson.project_version(),
link_args: link_args,
link_depends: 'version.lds',
install: true,