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>
This commit is contained in:
Brandon Maier 2023-07-29 19:53:26 +00:00
parent bdc5c8793a
commit 7961ba29cd

View file

@ -28,7 +28,7 @@ endif
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,