From patchwork Mon Mar 21 07:16:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 64107 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1229654lbc; Mon, 21 Mar 2016 00:21:28 -0700 (PDT) X-Received: by 10.140.89.103 with SMTP id u94mr37743625qgd.3.1458544888587; Mon, 21 Mar 2016 00:21:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e66si7096787qkh.75.2016.03.21.00.21.28; Mon, 21 Mar 2016 00:21:28 -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 23B3461791; Mon, 21 Mar 2016 07:21:28 +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_H2, 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 C5F706177F; Mon, 21 Mar 2016 07:20:54 +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 8FAE961774; Mon, 21 Mar 2016 07:20:18 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by lists.linaro.org (Postfix) with ESMTPS id 859CC6178F for ; Mon, 21 Mar 2016 07:16:48 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id k12so120960992lbb.1 for ; Mon, 21 Mar 2016 00:16:48 -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=HtwKf/7434ruV3rJmxuzPFYtDYtVzgfIRU/ZkS3TQVg=; b=D8WHs8Jt0mrqaICjnpLx7B4obg6wxphFt+AZSa/oB3e2SKVeX91zm54kmq4EhpK7be lErurS2M0nEXqC/aBrYcuqAC61lGDd45zUZ6neO+IYjOPVp+Vx8FweDfftLaXlf6AO9z P2f1WChHMYqM89TGq0rgrJcZHz5VS00Q+jwy2SfLKScHJ1KJJ7lIk+nwATVV4TzFNmAH K1rV0CIwSCLLgWTeA9AqUYZ/2NM4VDj1BO5x/2Xuel6eqlmdM7RpN0ofUiAaw1crmhAA uwF81cCM74AHXazGDsc42D7nXpXJAqM2bxieu05AoorIhkGtT1UZ/GpHMnC9arOunSHj B3Cg== X-Gm-Message-State: AD7BkJLInyi+qyLg76WWiZa1e2xvJNbCWi2Tpq+vpRl2t/nOSMi8sG4DZavxd07t1Xuv+4IhVOA= X-Received: by 10.112.54.201 with SMTP id l9mr10299759lbp.105.1458544607410; Mon, 21 Mar 2016 00:16:47 -0700 (PDT) Received: from localhost.localdomain (ppp95-165-125-64.pppoe.spdop.ru. [95.165.125.64]) by smtp.gmail.com with ESMTPSA id c14sm4255754lfc.9.2016.03.21.00.16.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Mar 2016 00:16:46 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 21 Mar 2016 10:16:44 +0300 Message-Id: <1458544605-1930-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCHv3 1/2] 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/build-pktio-dpdk | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 scripts/build-pktio-dpdk 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/build-pktio-dpdk b/scripts/build-pktio-dpdk new file mode 100755 index 0000000..bcc00b0 --- /dev/null +++ b/scripts/build-pktio-dpdk @@ -0,0 +1,26 @@ +#!/bin/bash + +TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"} + +git clone http://dpdk.org/git/dpdk dpdk +pushd dpdk +git checkout -b bv2.2.0 v2.2.0 + +#Make and edit DPDK configuration +make config T=${TARGET} O=${TARGET} +pushd 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 +popd + +#Build DPDK +make install T=${TARGET} EXTRA_CFLAGS="-fPIC" +popd + +#Build ODP +./bootstrap; +./configure --enable-test-vald --enable-test-perf --enable-test-cpp \ + --enable-debug --enable-debug-print \ + --with-dpdk-path=`pwd`/dpdk/${TARGET} +make