X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=config%2Fmeson.build;h=69f2aeb6051294eb2270652c7b281b1b5d9eb41c;hb=c1f021890074e6c2f9797cfb8feb053376323f32;hp=cff8b33dd2c0f4928ed0648d69e65aa92bd2b413;hpb=7762e0139b7d0249baac4fe95a49653c7295c2a0;p=dpdk.git diff --git a/config/meson.build b/config/meson.build index cff8b33dd2..69f2aeb605 100644 --- a/config/meson.build +++ b/config/meson.build @@ -29,10 +29,7 @@ abi_version = run_command(find_program('cat', 'more'), # and have the soname be all but the final part of the abi_version. # e.g. v20.1 => librte_foo.so.20.1 # sonames => librte_foo.so.20 -# e.g. v20.0.1 => librte_foo.so.20.0.1 -# sonames => librte_foo.so.20.0 -abi_va = abi_version.split('.') -so_version = abi_va.length() == 2 ? abi_va[0] : abi_va[0] + '.' + abi_va[1] +so_version = abi_version.split('.')[0] # extract all version information into the build configuration dpdk_conf.set('RTE_VER_YEAR', pver.get(0).to_int()) @@ -150,6 +147,15 @@ if numa_dep.found() and cc.has_header('numaif.h') dpdk_extra_ldflags += '-lnuma' endif +has_libfdt = 0 +fdt_dep = cc.find_library('libfdt', required: false) +if fdt_dep.found() and cc.has_header('fdt.h') + dpdk_conf.set10('RTE_HAS_LIBFDT', true) + has_libfdt = 1 + add_project_link_arguments('-lfdt', language: 'c') + dpdk_extra_ldflags += '-lfdt' +endif + # check for libbsd libbsd = dependency('libbsd', required: false) if libbsd.found()