utilize RTE_EAL_PMD_PATH 05/3205/1
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 29 Sep 2016 07:57:13 +0000 (09:57 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 29 Sep 2016 12:40:49 +0000 (14:40 +0200)
commit1264144c999ae5cd1bda04376d6d59c25bff9dc1
treefd3ed2f65731d80ed3b9ca7e631085054b75580d
parentd1ebc04774747fb242ae02bcfa51dcfaf5bffd18
utilize RTE_EAL_PMD_PATH

This sets RTE_EAL_PMD_PATH to /usr/lib/$(shell dpkg-architecture
-qDEB_HOST_MULTIARCH)/dpdk-pmds.
On creating the pmd library packages those get a symlink from that dir.
This allows DPDK applications to autoload pmd drivers and only rely on
the EAL -d option for those provided in other places (e.g. custom
drivers).
By that one can use testpmd/l2fwd/openvswitch-dpdk and others without
passing -d <full-path-to-pmd.so> to EAL.

Each lib gets an extra relative symlink from the RTE_EAL_PMD_PATH dir to
the lib itself e.g. for librte_vhost:
./usr/lib/x86_64-linux-gnu/dpdk-pmds/
./usr/lib/x86_64-linux-gnu/dpdk-pmds/librte_vhost.so.3 -> ../librte_vhost.so.3

Change-Id: Idf997e58cfa5060961239b3ee0c22de89e0ed1a3
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
debian/rules