This makes it easier to deploy OVS with ODP support. Signed-off-by: Zoltan Kiss <[email protected]> --- INSTALL.ODP | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
diff --git a/INSTALL.ODP b/INSTALL.ODP index 9c36dd1..86cec1f 100644 --- a/INSTALL.ODP +++ b/INSTALL.ODP @@ -54,6 +54,34 @@ Refer to INSTALL.userspace for general requirements of building userspace OVS. Alternatively go to https://wiki.linaro.org/LNG/Engineering/OVSDPDKOnUbuntu which explains how to run OVS with DPDK. Similar steps should work with ODP. +OVS Debian package: +============= +You can pass the configure options via DATAPATH_CONFIGURE_OPTS: + +DATAPATH_CONFIGURE_OPTS="--with-odp=<ODP_DIR> --with-odp-platform=<platform>" \ +fakeroot debian/rules binary + +If you cross-compile, you need to specify "host" for configure, +DEB_HOST_GNU_TYPE for dh_strip, and probably a cross-compiled OpenSSL. The +latter needs to be told to configure, and dh_shlibdeps needs to find the +libraries. E.g.: + +LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/arm-linux-gnueabihf/lib:<OpenSSL-DIR>' \ +DEB_HOST_GNU_TYPE=arm-linux-gnueabihf \ +DATAPATH_CONFIGURE_OPTS="--with-odp=<ODP_DIR> --with-odp-platform=<platform> \ +--host=arm-linux-gnueabihf --with-openssl=<OpenSSL-DIR>" fakeroot debian/rules \ +binary + +If you compile OpenSSL from upstream, probably you won't have the shlibs file, +you can create one in <OpenSSL-DIR>/DEBIAN/shlibs: + +libcrypto 1.0.0 libcrypto1.0.0 (>= 1.0.1d) +libssl 1.0.0 libssl1.0.0 (>= 1.0.1d) + +Another useful option is to set parallel compiling, and you can skip unit tests +as well if you are just experimenting with compile. See INSTALL.Debian for more: +DEB_BUILD_OPTIONS='parallel=8 nocheck' + Using ODP with ovs-vswitchd: ---------------------------- -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
