From patchwork Tue Nov 25 18:14:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 41504 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C95925E72 for ; Tue, 25 Nov 2014 18:15:04 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf932325eek.11 for ; Tue, 25 Nov 2014 10:15:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=d+BElSPSDnAU5Iey0fAFFCBp7Q9kVbqn8kXFwWWMJDQ=; b=Kp9FxOhTncMN0YQT4RCPXgXR9cHwefuLJC1nSEyY1cnqnrgChBZgSZf95dA3MKZfxF UPZmau2NG+CLa6OvsiV0zPCdHetIY1+5fZBDvbHgBkcO9KY2BjlDdLwLCeehbURr74LP REyV+AIX4b27GGUsYN9+o8GgNipbNd91l+Pwzuiu5JXCHpeMPzIkoGyv0PE9k1iwaJqU g3AkvNlaJXCqlJz1bssPxQTjhzw8uz6g8l5DxiceKWCJQZeaddb1f4EoYG1jOkeDTOll GPpjwWFFNxtXSNpJJHIQCndBDMlxoIJ6ZgDEmFGPf92/OcxkTm3lmNpMcTiYeyaCG1rh W/Eg== X-Gm-Message-State: ALoCoQl9kG/xqPuOqxnTxfb3dvHDBCaVVna7OkGAXCL26WVNGwtmb9xLZQGtvxvKgNEtltQNwlTC X-Received: by 10.180.102.228 with SMTP id fr4mr5886864wib.1.1416939303117; Tue, 25 Nov 2014 10:15:03 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.200 with SMTP id h8ls178315lae.76.gmail; Tue, 25 Nov 2014 10:15:02 -0800 (PST) X-Received: by 10.112.202.71 with SMTP id kg7mr11073672lbc.16.1416939302822; Tue, 25 Nov 2014 10:15:02 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id iy10si2106743lbc.71.2014.11.25.10.15.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 10:15:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id 10so1056165lbg.36 for ; Tue, 25 Nov 2014 10:15:02 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr28799204laj.67.1416939302652; Tue, 25 Nov 2014 10:15:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp485556lbc; Tue, 25 Nov 2014 10:15:01 -0800 (PST) X-Received: by 10.140.86.175 with SMTP id p44mr1826895qgd.54.1416939301358; Tue, 25 Nov 2014 10:15:01 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j31si2127198qgf.85.2014.11.25.10.15.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Nov 2014 10:15:01 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XtKde-000111-JW; Tue, 25 Nov 2014 18:14:58 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XtKdY-00010w-Lr for lng-odp@lists.linaro.org; Tue, 25 Nov 2014 18:14:52 +0000 Received: by mail-wg0-f52.google.com with SMTP id a1so1596659wgh.39 for ; Tue, 25 Nov 2014 10:14:47 -0800 (PST) X-Received: by 10.180.187.143 with SMTP id fs15mr33599936wic.55.1416939287208; Tue, 25 Nov 2014 10:14:47 -0800 (PST) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id ex9sm17489407wib.14.2014.11.25.10.14.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Nov 2014 10:14:46 -0800 (PST) From: Zoltan Kiss To: ciprian.barbu@linaro.org Date: Tue, 25 Nov 2014 18:14:30 +0000 Message-Id: <1416939270-4369-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] INSTALL.ODP: Add info about Debian packaging X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kiss@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This makes it easier to deploy OVS with ODP support. Signed-off-by: Zoltan Kiss --- 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= --with-odp-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:' \ +DEB_HOST_GNU_TYPE=arm-linux-gnueabihf \ +DATAPATH_CONFIGURE_OPTS="--with-odp= --with-odp-platform= \ +--host=arm-linux-gnueabihf --with-openssl=" fakeroot debian/rules \ +binary + +If you compile OpenSSL from upstream, probably you won't have the shlibs file, +you can create one in /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: ----------------------------