From patchwork Tue Jul 29 10:43:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34462 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F3C9D202E4 for ; Tue, 29 Jul 2014 10:44:39 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf63187347ieb.6 for ; Tue, 29 Jul 2014 03:44:39 -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=Ux+e5JfcPB9re8OH95ABoTDB6wdknowEbHsO4TCfSbA=; b=mQHrokvzZtTdbm4k+bQ7MFtuBIZgqLuHl5r+GQoU94OFnqKJTSaJL6xhZjPUP1kRp0 fGD9SHL3Z2GAtN4C6N4eufogTJFqpx92bT0V3JekjwMymHqUcmiHxqrrgS4+6B/jtSKS BVWrXZSjmIrBde1+LFcRZgjtI2gzMPH4/ynAD+4niw8/+zMhQd/M09bUyWZek10KReYO G3pZs/AcObzBevpAsiwT8g4tG3CDRMRoM7gfzedcbgyKbEKbXmVys7/7EoZ1jauFszQY dCCcPQ3PnIGv46ShsWAkELTQvDZpxn5Gu9qVAUq8K8eto5eXltyYqJFbvDIj9UvEiRhN E6SQ== X-Gm-Message-State: ALoCoQlRXOxSU+2fAMeE4nxqJgRvjKW6erCrHNmV2R68BZBQo+LwIOqEG55yYbDjxtfBOs5QOAaw X-Received: by 10.182.27.35 with SMTP id q3mr428707obg.34.1406630679513; Tue, 29 Jul 2014 03:44:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.213 with SMTP id n79ls64488qgd.29.gmail; Tue, 29 Jul 2014 03:44:39 -0700 (PDT) X-Received: by 10.52.238.227 with SMTP id vn3mr637441vdc.47.1406630679357; Tue, 29 Jul 2014 03:44:39 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id u7si310520vdc.40.2014.07.29.03.44.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 03:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so13135587vcb.38 for ; Tue, 29 Jul 2014 03:44:39 -0700 (PDT) X-Received: by 10.221.24.7 with SMTP id rc7mr811964vcb.54.1406630679247; Tue, 29 Jul 2014 03:44:39 -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 tc5csp234736vcb; Tue, 29 Jul 2014 03:44:38 -0700 (PDT) X-Received: by 10.140.85.101 with SMTP id m92mr2173987qgd.26.1406630678628; Tue, 29 Jul 2014 03:44:38 -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 d69si37121002qgd.88.2014.07.29.03.44.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 03:44:38 -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 1XC4tZ-0000Dn-Kn; Tue, 29 Jul 2014 10:44:37 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XC4tO-0000Cm-AQ for lng-odp@lists.linaro.org; Tue, 29 Jul 2014 10:44:26 +0000 Received: by mail-lb0-f169.google.com with SMTP id s7so6853585lbd.28 for ; Tue, 29 Jul 2014 03:44:20 -0700 (PDT) X-Received: by 10.152.43.104 with SMTP id v8mr1529346lal.70.1406630660446; Tue, 29 Jul 2014 03:44:20 -0700 (PDT) Received: from localhost (c-2ec28468-74736162.cust.telenor.se. [46.194.132.104]) by mx.google.com with ESMTPSA id oy1sm35209477lbb.4.2014.07.29.03.44.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 03:44:19 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Jul 2014 12:43:57 +0200 Message-Id: <1406630637-26294-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406630637-26294-1-git-send-email-anders.roxell@linaro.org> References: <1406630637-26294-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 3/3] dpdk: make use of variable --with-sdk-install-path 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.179 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 | 5 +++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index b80bf14..032882c 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 SDK_INSTALL_PATH_ +PLAT_CFLAGS += -include $(SDK_INSTALL_PATH)/include/rte_config.h +PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include +PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch +PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env + +AM_LDFLAGS += -L$(SDK_INSTALL_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 5325e77..4386d59 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -24,9 +24,10 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 # To compile ODP with linux-dpdk $ cd $ ./bootstrap -$ ./configure --with-platform=linux-dpdk LDFLAGS=-L/lib CFLAGS="-include /include/rte_config.h -I/include -I/include/arch -I/include/exec-env" +$ ./configure --with-platform=linux-dpdk --with-sdk-install-path= # For example -$ ./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" +$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=/root/dpdk/build +# if dpdk is installed to the default path then you don't need to specify --with-sdk-install-path= when you run configure. $ make # Commands to test