Add API calls for packet generator
[vpp.git] / build-data / platforms.mk
index 38f840e..65809ea 100644 (file)
@@ -27,8 +27,11 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
        find $(INSTALL_PREFIX)$(ARCH)/*/bin -type f -print              \
          | sed -e 's:.*:../& /usr/bin:'                                \
            > deb/debian/vpp.install ;                                  \
-       find $(INSTALL_PREFIX)$(ARCH)/*/lib*  -type f -print            \
-         | egrep -e '*\.so\.*\.*\.*'                                   \
+                                                                       \
+       : 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 ;                              \
                                                                        \
@@ -36,6 +39,14 @@ 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 ;                              \
+                                                                       \
        : bin package needs startup config ;                            \
        echo ../../vpp/conf/startup.conf /etc/vpp                       \
           >> deb/debian/vpp.install ;                                  \
@@ -66,6 +77,7 @@ install-rpm: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
              $(ROOT_PACKAGES)) || exit 1;                              \
                                                                        \
        cd rpm ;                                                        \
-       rpmbuild -bb --define "_topdir $$PWD"  vpp.spec ;               \
+       rpmbuild -bb --define "_topdir $$PWD" --define                  \
+               "_install_dir $(INSTALL_PREFIX)$(ARCH)" vpp.spec ;      \
        mv $$(find RPMS -name \*.rpm -type f) ..