From patchwork Fri Mar 18 11:59:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 64051 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1009260lbc; Fri, 18 Mar 2016 05:02:33 -0700 (PDT) X-Received: by 10.140.93.166 with SMTP id d35mr21114184qge.29.1458302553475; Fri, 18 Mar 2016 05:02:33 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y191si6619346qhy.95.2016.03.18.05.02.32; Fri, 18 Mar 2016 05:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DA9FA667E7; Fri, 18 Mar 2016 12:02:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 2B7D0669A4; Fri, 18 Mar 2016 12:02:07 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A6BD466999; Fri, 18 Mar 2016 12:02:02 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by lists.linaro.org (Postfix) with ESMTPS id 69C1A669B9 for ; Fri, 18 Mar 2016 12:00:08 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id bc4so87021759lbc.2 for ; Fri, 18 Mar 2016 05:00:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vifrQMCzQYu3bfzAiYYmFUQniNQvLRAeLYwEKIfZr3c=; b=Ux+D6wEGzhTR2S3yAAgHnpuKhTNnLsHTr4rvJfkPIUZD4kNYVQ5B168ry0e5JmKtqi ahER7zQCSePWUDO4tUTD9lBliTa9YkQoQYPh7GcQrTYHS8Qpa9gXK3+A9RzpdJ+PzRXh HNIOf1/ISLR3Ypy4Qq933Rx1oG/4HNhYOYMAX/8CV5aeiRghFc9BcU0HOM/rUKN5SUB4 IM+vRXtPBlFjYyekBO2jrctApftT/uR6Mg/z+4PBw629vrGRA70QHQnpEw43LzSX0dDb ojoV33OQa3EqJQDaRHwSeZnEVacvuevhmc3TWGyhVq8GgOhckWVGe3LzLspNqGYYE3RW NTXQ== X-Gm-Message-State: AD7BkJJ9UnAgA92XB1WxuyqlkLccFArSLBi3/XgZn2fHnpWnkilNd/pTZj9ExfQo/Phpz+j30LI= X-Received: by 10.112.157.105 with SMTP id wl9mr5699802lbb.137.1458302407212; Fri, 18 Mar 2016 05:00:07 -0700 (PDT) Received: from localhost.localdomain (ppp95-165-125-64.pppoe.spdop.ru. [95.165.125.64]) by smtp.gmail.com with ESMTPSA id i9sm2187953lfe.31.2016.03.18.05.00.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Mar 2016 05:00:06 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 18 Mar 2016 14:59:56 +0300 Message-Id: <1458302396-24984-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] scripts: add builddpdk X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Add script to quickly build odp with dpdk pktio support. Signed-off-by: Maxim Uvarov --- .gitignore | 1 + scripts/builddpdk | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 scripts/builddpdk diff --git a/.gitignore b/.gitignore index b4c146b..4945d25 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ core cscope.out depcomp doc/output +dpdk/ install-sh lib/ libtool diff --git a/scripts/builddpdk b/scripts/builddpdk new file mode 100755 index 0000000..b178c19 --- /dev/null +++ b/scripts/builddpdk @@ -0,0 +1,26 @@ +#!/bin/bash + +TARGET="x86_64-native-linuxapp-gcc" + +git clone http://dpdk.org/git/dpdk dpdk +cd dpdk +git checkout -b bv2.2.0 v2.2.0 + +#Make and edit DPDK configuration +make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc +cd x86_64-native-linuxapp-gcc +sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' .config +#To use I/O without DPDK supported NIC's enable pcap pmd: +sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config +cd .. + +#Build DPDK +make install T=${TARGET} EXTRA_CFLAGS="-fPIC" +cd .. + +#Build ODP +./bootstrap; +./configure --enable-test-vald --enable-test-perf --enable-test-cpp \ + --enable-debug --enable-debug-print \ + --with-dpdk-path=`pwd`/dpdk/${TARGET}/include +make