From patchwork Fri Jul 25 07:43:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34263 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8805C235AB for ; Fri, 25 Jul 2014 07:43:33 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf11777770vcb.3 for ; Fri, 25 Jul 2014 00:43:33 -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:in-reply-to :references: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=lhA82d3cRBwcc0q3x1TSzuzESbg8ZOVg68vZE9s/QD4=; b=SamAEOxWGM/S156A11xCXeV9kj+4u0e9ztw1k2T/CMhSXFuivmosiMvSyOK6rjXe+g 0CJ/tzo2ZGfGLEX+Yz8x9CwYwKZRQrIR0Fd0RwvtjfLFGu7Hr6gf9z2Qup2gy2RjSsGM K79Kw/GbH+wOLp0hkRxlgKJBHfZr6Y0n/0XKEwAgNQYYMGGhbliunPUOxBtyl3tUmRw6 ooAlX/PfioZqcMKmpqqVDoB/gg1zNlFF9yrD3k7al4148jHKIb4WRZ4IPz5fIPPhMpFl e9KzeElzdHxNsWIZmMhmbbmhCT+Cu0n9nk02T9Onx7FxgJ+AKw3H+Hn1n3CmGGBdlcjq tRGA== X-Gm-Message-State: ALoCoQlf6f58uc348dKKGbvxveY+rQJpgaZ6dp88TQxe8bhAAIH2eYO5TCRzrd0HhKUpg+Ghj24+ X-Received: by 10.236.86.178 with SMTP id w38mr5370465yhe.13.1406274213310; Fri, 25 Jul 2014 00:43:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.85 with SMTP id s79ls1070318qgd.22.gmail; Fri, 25 Jul 2014 00:43:33 -0700 (PDT) X-Received: by 10.52.92.84 with SMTP id ck20mr15951268vdb.10.1406274213208; Fri, 25 Jul 2014 00:43:33 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id b3si6915188vdw.86.2014.07.25.00.43.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 00:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so6972331vcb.27 for ; Fri, 25 Jul 2014 00:43:32 -0700 (PDT) X-Received: by 10.52.243.10 with SMTP id wu10mr8841139vdc.45.1406274212895; Fri, 25 Jul 2014 00:43:32 -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 tc5csp17880vcb; Fri, 25 Jul 2014 00:43:32 -0700 (PDT) X-Received: by 10.140.89.197 with SMTP id v63mr23764391qgd.71.1406274212405; Fri, 25 Jul 2014 00:43:32 -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 l74si14943010qgl.76.2014.07.25.00.43.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 00:43:32 -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 1XAaA7-0003xd-Jx; Fri, 25 Jul 2014 07:43:31 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAa9x-0003wt-50 for lng-odp@lists.linaro.org; Fri, 25 Jul 2014 07:43:21 +0000 Received: by mail-lb0-f182.google.com with SMTP id z11so3156294lbi.27 for ; Fri, 25 Jul 2014 00:43:14 -0700 (PDT) X-Received: by 10.153.4.37 with SMTP id cb5mr14717736lad.3.1406274194869; Fri, 25 Jul 2014 00:43:14 -0700 (PDT) Received: from localhost (c-4f66bc92-74736162.cust.telenor.se. [79.102.188.146]) by mx.google.com with ESMTPSA id jo6sm6070695lab.5.2014.07.25.00.43.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 00:43:14 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 25 Jul 2014 09:43:00 +0200 Message-Id: <1406274181-27734-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406274181-27734-1-git-send-email-anders.roxell@linaro.org> References: <1406274181-27734-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/3] 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.182 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 2184237..5325e77 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -23,12 +23,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 @@ -44,20 +43,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