From 16bec677aab8482a0fc9e26a4356fb5cce502e5a Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 14 Jul 2022 17:55:46 +0200 Subject: debian: Add option to build without DPDK. Co-authored-by: Frode Nordahl Signed-off-by: Frode Nordahl Signed-off-by: Ilya Maximets --- Documentation/intro/install/debian.rst | 36 ++++++++++++---------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'Documentation') diff --git a/Documentation/intro/install/debian.rst b/Documentation/intro/install/debian.rst index 4024dc07a..6d2687830 100644 --- a/Documentation/intro/install/debian.rst +++ b/Documentation/intro/install/debian.rst @@ -58,38 +58,28 @@ You do not need to be the superuser to build the Debian packages. top level directory. 3. Install the build dependencies listed under "Build-Depends:" near the top of - ``debian/control``. You can install these any way you like, e.g. with + ``debian/control.in``. You can install these any way you like, e.g. with ``apt-get install``. -Check your work by running ``dpkg-checkbuilddeps`` in the top level of your OVS -directory. If you've installed all the dependencies properly, -``dpkg-checkbuilddeps`` will exit without printing anything. If you forgot to -install some dependencies, it will tell you which ones. - -4. Build the package:: - - $ fakeroot debian/rules binary +4. Prepare the package source. - This will do a serial build that runs the unit tests. This will take - approximately 8 to 10 minutes. If you prefer, you can run a faster parallel - build:: + If you want to build the package with DPDK support execute the following + command:: - $ DEB_BUILD_OPTIONS='parallel=8' fakeroot debian/rules binary + $ ./boot.sh && ./configure --with-dpdk=shared && make debian - If you are in a big hurry, you can even skip the unit tests:: + If not:: - $ DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary + $ ./boot.sh && ./configure && make debian -.. note:: - - There are a few pitfalls in the Debian packaging building system so that, - occasionally, you may find that in a tree that you have using for a while, - the build command above exits immediately without actually building anything. - To fix the problem, run:: +Check your work by running ``dpkg-checkbuilddeps`` in the top level of your OVS +directory. If you've installed all the dependencies properly, +``dpkg-checkbuilddeps`` will exit without printing anything. If you forgot to +install some dependencies, it will tell you which ones. - $ fakeroot debian/rules clean +5. Build the package:: - or start over from a fresh copy of the source tree. + $ make debian-deb 5. The generated .deb files will be in the parent directory of the Open vSwitch source distribution. -- cgit v1.2.1