diff options
author | Luca Boccassi <bluca@debian.org> | 2018-10-02 17:20:45 +0100 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2018-10-27 23:22:12 +0200 |
commit | 085766aa67b7c18897fbcea69be0d7900db295c0 (patch) | |
tree | 1f9479eee07765429ae8799025476c06a82bb207 /lib | |
parent | 477f0d38b486ca6afa2e090c56652737baadda15 (diff) | |
download | dpdk-085766aa67b7c18897fbcea69be0d7900db295c0.zip dpdk-085766aa67b7c18897fbcea69be0d7900db295c0.tar.gz dpdk-085766aa67b7c18897fbcea69be0d7900db295c0.tar.xz |
build: change default driver installation directory
As part of the effort of consolidating the DPDK installation bits and
pieces across distros, set the default directory of lib/ where PMDs get
installed to dpdk/pmds-XX.YY. It's necessary to have a versioned
subdirectory as multiple ABI revisions might be installed at the same
time, so having a fixed name will cause trouble with the autoload
feature.
Small refactor with parsing and saving the major version to a variable,
since it's now used in 3 different places.
Signed-off-by: Luca Boccassi <bluca@debian.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Timothy Redaelli <tredaelli@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/meson.build b/lib/meson.build index c0cc2d8..bb7f443 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -93,10 +93,8 @@ foreach l:libraries lib_version = '@0@.1'.format(version) so_version = '@0@'.format(version) else - prj_ver = meson.project_version().split('.') - lib_version = '@0@.@1@'.format( - prj_ver.get(0), prj_ver.get(1)) - so_version = lib_version + lib_version = major_version + so_version = major_version endif # first build static lib |