From patchwork Thu Jul 24 20:09:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34252 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BAACD235A9 for ; Thu, 24 Jul 2014 20:11:16 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id h136sf12594554oig.0 for ; Thu, 24 Jul 2014 13:11:16 -0700 (PDT) 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:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=NLusxg9MQirlvbIf19I7OknMkQC4yJq81UwhMTvyx3g=; b=GBOloJrWmRmO7ttY4Eo3KGbYY33v534m1ErkavJiK7BExj48i1Fgzt0U+IynX1oyOa ZmCdzgk8ViZnRSK89KrjgtQNrW8uRTctpMeacarWkjM3kyYFFCqCMhWQp85NXSTOpSP8 ZRXLLBGRSoFQRgIXCkO083xzB3k9QnYo4E9xpDDjwzNB1/vsEFE7tgih7T3CLZ7PoCOD PZM4hFyH+dW1iIYgyK2Mi75iHP+LEixWB+mnYqjFLPxHjSp92Dx6G4oG0o8iOQ+eV28V Gi7kgiY1AuY5gQMoQ7zCcuBG2mR62SVQdEh2WxlSL8fdmkj4TqTchl/kwfm5f1hers/F WqtQ== X-Gm-Message-State: ALoCoQnBeLYBPP9PUnZxIwpOvVEPU12nUeuwA/IJpO5q+Emh03wtEM7SBkt04CweBqAdCDa6bikt X-Received: by 10.42.209.140 with SMTP id gg12mr5103702icb.26.1406232676163; Thu, 24 Jul 2014 13:11:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.233 with SMTP id j96ls967438qgd.80.gmail; Thu, 24 Jul 2014 13:11:16 -0700 (PDT) X-Received: by 10.236.28.167 with SMTP id g27mr15915685yha.120.1406232676009; Thu, 24 Jul 2014 13:11:16 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id j18si20105187yhh.23.2014.07.24.13.11.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 13:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so5842313vcb.30 for ; Thu, 24 Jul 2014 13:11:15 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr13312054vdb.27.1406232675790; Thu, 24 Jul 2014 13:11:15 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp393038vcb; Thu, 24 Jul 2014 13:11:15 -0700 (PDT) X-Received: by 10.140.21.137 with SMTP id 9mr18564902qgl.37.1406232675326; Thu, 24 Jul 2014 13:11:15 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 5si12810711qag.127.2014.07.24.13.11.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 13:11:15 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAPMA-0004Er-J8; Thu, 24 Jul 2014 20:11:14 +0000 Received: from mail-la0-f44.google.com ([209.85.215.44]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAPM2-0004DR-UN for lng-odp@lists.linaro.org; Thu, 24 Jul 2014 20:11:07 +0000 Received: by mail-la0-f44.google.com with SMTP id e16so2346123lan.31 for ; Thu, 24 Jul 2014 13:11:00 -0700 (PDT) X-Received: by 10.112.55.147 with SMTP id s19mr11494314lbp.78.1406232660650; Thu, 24 Jul 2014 13:11:00 -0700 (PDT) Received: from localhost (c-4f66bc92-74736162.cust.telenor.se. [79.102.188.146]) by mx.google.com with ESMTPSA id u6sm4976857laj.7.2014.07.24.13.10.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 13:10:59 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 24 Jul 2014 22:09:24 +0200 Message-Id: <1406232564-29034-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCHv2] dpdk: README: simplify and build against installed dpdk 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: anders.roxell@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.220.171 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 Signed-off-by: Anders Roxell --- platform/linux-dpdk/README | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 04a49d9..5122585 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -18,12 +18,11 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 # To compile ODP with linux-dpdk $ cd -$ sudo ./bootstrap -$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/lib CFLAGS="-include /include/rte_config.h -I/include -I/include/arch -I/include/exec-env" +$ ./bootstrap +$ ./configure --with-platform=linux-dpdk LDFLAGS=-L/lib CFLAGS="-include /include/rte_config.h -I/include -I/include/arch -I/include/exec-env" # For example -$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/build/lib CFLAGS="-include /root/dpdk/build/include/rte_config.h -I/root/dpdk/build/include -I/root/dpdk/build/include/arch -I/root/dpdk/build/include/exec-env" -$ sudo make clean -$ sudo make +$ ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/x86_64-default-linuxapp-gcc/lib CFLAGS="-include /root/dpdk/x86_64-default-linuxapp-gcc/include/rte_config.h -I/root/dpdk/x86_64-default-linuxapp-gcc/include -I/root/dpdk/x86_64-default-linuxapp-gcc/include/arch -I/root/dpdk/x86_64-default-linuxapp-gcc/include/exec-env" +$ make # Commands to test l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2 @@ -39,20 +38,7 @@ $ cd # This has to be done only once. # Following command will generate build dir as ./build in -$ make config T=x86_64-default-linuxapp-gcc - -# If user wants to override and give a different name for build dir, -# then that can be done using the following command -$ make config T=x86_64-default-linuxapp-gcc O=my_sdk_build_dir - -$ vi /.config and set CONFIG_RTE_BUILD_COMBINE_LIBS=y - -Note: If non-intel SFP's are used in NIC, then -$ vi /.config and -set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y - -$ cd -$ make clean; make +$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" # If "conflicting types for skb_set_hash" error happens during dpdk # build, then please knock-off skb_set_hash function from kcompat.h as