summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/buildtools/symlink-drivers-solibs.sh
blob: 42985e85563902ae6523d491f246948a5b97b81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation

# post-install script for meson/ninja builds to symlink the PMDs stored in
# $libdir/dpdk/drivers/ to $libdir. This is needed as some PMDs depend on
# others, e.g. PCI device PMDs depending on the PCI bus driver.

# parameters to script are paths relative to install prefix:
# 1. directory for installed regular libs e.g. lib64
# 2. subdirectory of libdir where the pmds are

cd ${MESON_INSTALL_DESTDIR_PREFIX}/$1 && ln -sfv $2/librte_*.so* .