summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-07-13 13:42:33 +0200
committerDamjan Marion <damarion@cisco.com>2016-07-13 13:42:39 +0200
commitad476c7861d0428766f9bee01f69cd00025a47c0 (patch)
treead5c392cdfdc3b0c77b06839605f2f7feb4b2ab7
parent92217f3c1d6ca7a65ba567dca5273a0aad2a38d9 (diff)
Add plugins debian packaging
New debian package "vpp-plugins" is created with enabled plugins. Change-Id: I8920178e8874f12e075858001ec44257dfaf497d Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--build-data/platforms.mk5
-rw-r--r--build-data/platforms/vpp.mk2
-rw-r--r--build-root/deb/debian/control7
-rwxr-xr-xbuild-root/scripts/find-plugins-contents11
4 files changed, 24 insertions, 1 deletions
diff --git a/build-data/platforms.mk b/build-data/platforms.mk
index 625006b4..65809ea6 100644
--- a/build-data/platforms.mk
+++ b/build-data/platforms.mk
@@ -31,6 +31,7 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
: need symbolic links in the lib pkg ; \
find $(INSTALL_PREFIX)$(ARCH)/*/lib* \( -type f -o -type l \) \
-print | egrep -e '*\.so\.*\.*\.*' \
+ | grep -v plugins\/ \
| sed -e 's:.*:../& /usr/lib/x86_64-linux-gnu:' \
> deb/debian/vpp-lib.install ; \
\
@@ -38,6 +39,10 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
./scripts/find-dev-contents $(INSTALL_PREFIX)$(ARCH) \
deb/debian/vpp-dev.install ; \
\
+ : plugins package ; \
+ ./scripts/find-plugins-contents $(INSTALL_PREFIX)$(ARCH) \
+ deb/debian/vpp-plugins.install ; \
+ \
: dpdk headers ; \
./scripts/find-dpdk-contents $(INSTALL_PREFIX)$(ARCH) \
deb/debian/vpp-dpdk-dev.install ; \
diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk
index fb1867c7..977c4c32 100644
--- a/build-data/platforms/vpp.mk
+++ b/build-data/platforms/vpp.mk
@@ -30,7 +30,7 @@ vpp_uses_dpdk = yes
# vpp_enable_tests = yes
vpp_root_packages = vpp vlib vlib-api vnet svm vpp-api-test \
- vpp-api gmod
+ vpp-api gmod plugins
vpp_configure_args_vpp = --with-dpdk
vnet_configure_args_vpp = --with-dpdk
diff --git a/build-root/deb/debian/control b/build-root/deb/debian/control
index 97464e42..d1e7680e 100644
--- a/build-root/deb/debian/control
+++ b/build-root/deb/debian/control
@@ -47,6 +47,13 @@ Description: Vector Packet Processing--runtime libraries
vlib-api - binary API library
vnet - network stack library
+Package: vpp-plugins
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Vector Packet Processing--runtime plugins
+ This package contains VPP plugins
+ .
+
Package: vpp-dpdk-dkms
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
diff --git a/build-root/scripts/find-plugins-contents b/build-root/scripts/find-plugins-contents
new file mode 100755
index 00000000..8d1a4d5a
--- /dev/null
+++ b/build-root/scripts/find-plugins-contents
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+rm -f $2
+
+for i in ${1}/plugins/lib64/vpp_plugins/*.so; do
+ echo ../${i} /usr/lib/vpp_plugins >> ${2}
+done
+
+for i in ${1}/plugins/lib64/vpp_api_test_plugins/*.so; do
+ echo ../${i} /usr/lib/vpp_api_test_plugins >> ${2}
+done