VPP-393: Subinterface is still used after deletion
[vpp.git] / build-data / platforms.mk
index 59c2809..16e61e3 100644 (file)
@@ -43,6 +43,10 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
        ./scripts/find-plugins-contents $(INSTALL_PREFIX)$(ARCH)        \
         deb/debian/vpp-plugins.install ;                               \
                                                                        \
+       : python-api package ;                                          \
+       ./scripts/find-python-api-contents $(INSTALL_PREFIX)$(ARCH)     \
+        deb/debian/vpp-python-api.install ;                            \
+                                                                       \
        : dpdk headers ;                                                \
        ./scripts/find-dpdk-contents $(INSTALL_PREFIX)$(ARCH)           \
         deb/debian/vpp-dpdk-dev.install ;                              \
@@ -52,7 +56,7 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
           >> deb/debian/vpp.install ;                                  \
                                                                        \
        : and sysctl config ;                                           \
-       echo ../../vpp/conf/80-vpp.conf /usr/lib/sysctl.d               \
+       echo ../../vpp/conf/80-vpp.conf /etc/sysctl.d                   \
           >> deb/debian/vpp.install ;                                  \
                                                                        \
        : dev package needs a couple of additions ;                     \
@@ -85,7 +89,11 @@ install-rpm: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
              $(ROOT_PACKAGES)) || exit 1;                              \
                                                                        \
        cd rpm ;                                                        \
+       mkdir -p SOURCES ;                                              \
+       if test -f *.tar.gz ; then mv *.tar.gz SOURCES ; fi ;           \
        rpmbuild -bb --define "_topdir $$PWD" --define                  \
-               "_install_dir $(INSTALL_PREFIX)$(ARCH)" vpp.spec ;      \
+               "_install_dir $(INSTALL_PREFIX)$(ARCH)"                 \
+               --define "_mu_build_root_dir $(MU_BUILD_ROOT_DIR)"      \
+               vpp.spec ;                                              \
        mv $$(find RPMS -name \*.rpm -type f) ..