From patchwork Mon Jul 28 13:30:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34368 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 694D720AE8 for ; Mon, 28 Jul 2014 13:30:49 +0000 (UTC) Received: by mail-oi0-f72.google.com with SMTP id a141sf38794209oig.3 for ; Mon, 28 Jul 2014 06:30:49 -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=itWPHQwFgvQU96Mf193nC27DrAbnBd0mc66COGsRIdI=; b=lisQJR1y9M8C3UwGd6dyYC5rUIopXHcmYKfwC5RoJtaiEaIZFKn9z60MIllDQYame5 DVBgBqxKd5BeBB02pUcWDIvaQzNBYEC1/01V7DXFav6mn/YNzQWfRo7aV6keS3vdMLMk IvMZtD/r4JUELHngUCIqgdKduDJZhOy2N1QgmAnKgBFbJd+47Ygz4nYaztn+zNWHkSlW 2+QteeqWztgAmsiT4IV4X0KQ2B9+swIWFcnuw+JVui48w3Civn4WVVwh4eTrhnZ8pcCR PudjAbmSMwtAvS3peEx7t9zUVob/vnRBZBUIfP87zCPSQM6RFlC3G5lDCn3+rjm5sJeZ JEwA== X-Gm-Message-State: ALoCoQkfKkUl/+wFAynS5CnjNYyCdrmKsskXCgw5IrMQPny7Rj1pl03Q6cx6wF1vrbtxm+7m0THu X-Received: by 10.50.49.33 with SMTP id r1mr10777932ign.3.1406554249001; Mon, 28 Jul 2014 06:30:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.23 with SMTP id 23ls2081286qgi.26.gmail; Mon, 28 Jul 2014 06:30:48 -0700 (PDT) X-Received: by 10.52.26.173 with SMTP id m13mr2310634vdg.69.1406554248860; Mon, 28 Jul 2014 06:30:48 -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 rq6si12379524vcb.97.2014.07.28.06.30.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:48 -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 hy4so11231742vcb.13 for ; Mon, 28 Jul 2014 06:30:48 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr257792vcb.48.1406554248719; Mon, 28 Jul 2014 06:30:48 -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 tc5csp166718vcb; Mon, 28 Jul 2014 06:30:48 -0700 (PDT) X-Received: by 10.52.146.17 with SMTP id sy17mr37733108vdb.29.1406554248229; Mon, 28 Jul 2014 06:30:48 -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 q63si32105496qga.116.2014.07.28.06.30.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:48 -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 1XBl0n-0001k1-U1; Mon, 28 Jul 2014 13:30:45 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XBl0i-0001ib-5J for lng-odp@lists.linaro.org; Mon, 28 Jul 2014 13:30:40 +0000 Received: by mail-la0-f53.google.com with SMTP id gl10so5508720lab.12 for ; Mon, 28 Jul 2014 06:30:33 -0700 (PDT) X-Received: by 10.152.30.71 with SMTP id q7mr21312752lah.56.1406554233906; Mon, 28 Jul 2014 06:30:33 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id sl2sm11203665lbb.33.2014.07.28.06.30.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:33 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Mon, 28 Jul 2014 15:30:14 +0200 Message-Id: <1406554214-8416-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406554214-8416-1-git-send-email-anders.roxell@linaro.org> References: <1406277401-28679-1-git-send-email-anders.roxell> <1406554214-8416-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 3/3] dpdk: make use of variable --with-external-sysroot 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/Makefile.am | 12 +++++++++++- platform/linux-dpdk/README | 11 ++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index b80bf14..4e51f17 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -8,7 +8,17 @@ nodist_pkgconfig_DATA = $(top_builddir)/pkgconfig/libodp.pc .PHONY: pkgconfig/libodp.pc -PLAT_CFLAGS = -msse4.2 +PLAT_CFLAGS = -msse4.2 +if SYSROOT_PATH_ +PLAT_CFLAGS += -include $(SYSROOT_PATH)/include/rte_config.h +PLAT_CFLAGS += -I$(SYSROOT_PATH)/include +PLAT_CFLAGS += -I$(SYSROOT_PATH)/include/arch +PLAT_CFLAGS += -I$(SYSROOT_PATH)/include/exec-env + +AM_LDFLAGS += -L$(SYSROOT_PATH)/lib +else +PLAT_CFLAGS += -include rte_config.h +endif AM_CFLAGS += $(PLAT_CFLAGS) AM_CFLAGS += -I$(srcdir)/include diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 04a49d9..74bd03f 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -18,12 +18,13 @@ $ 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 --with-sysroot-path= # 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 --with-sysroot-path=/root/dpdk/build +# if dpdk is installed to the default path then you don't need to specify --with-sysroot-path= when you run configure. +$ make clean +$ make # Commands to test l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2