From patchwork Tue Jul 29 12:13:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34471 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77AFE20DCC for ; Tue, 29 Jul 2014 12:14:17 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id la4sf26736085vcb.2 for ; Tue, 29 Jul 2014 05:14:17 -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=R37lGPxGaE49dZecBTP9VwwzLI/b05sIplsMvN870tA=; b=N/xd899yMG5wyWJtG6v8L7dNarnS2AB9RRnjjmI634WnF++eaPt/93DduMKaR59qVE X1nmRsJpZMfVAtltGd6ukAWIXYDaN9UPjC0muUtlPkGCdSc12mZlTq2Wqr5FZ3RXtcZy Ujtw3RwFxS3tstpvyHMG/hU7wSmI6kRTYwc2RHpZohb5J37qOIefR+/pzJZfQcWEtR1u 2EF0iPnDcYkzHfzh26FFkAN9LFQAWvykNndS1J1VQEDBnrHF7wISL+WkHML5FuHMQcaz r7szzuHx6fCGbi1lkfmgtwJh/xHeqMeQzOvCEMQGuXV4vJ7n9a3AqPPIE1chpQS011hP tZrA== X-Gm-Message-State: ALoCoQlDgGLg+znsgS9gIasuC3A0mJwVzwbLXAbZ7O99y5k8Ho6hWSf6vXtvQGHfoNOFjzodal8J X-Received: by 10.236.99.8 with SMTP id w8mr449949yhf.31.1406636057248; Tue, 29 Jul 2014 05:14:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.23 with SMTP id 23ls77793qgi.26.gmail; Tue, 29 Jul 2014 05:14:17 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr1191187vcx.7.1406636057155; Tue, 29 Jul 2014 05:14:17 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ey8si14438445vdc.18.2014.07.29.05.14.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 05:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id im17so13364687vcb.17 for ; Tue, 29 Jul 2014 05:14:17 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr1264923vcb.0.1406636057061; Tue, 29 Jul 2014 05:14:17 -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 tc5csp239699vcb; Tue, 29 Jul 2014 05:14:16 -0700 (PDT) X-Received: by 10.224.38.71 with SMTP id a7mr2950260qae.44.1406636056536; Tue, 29 Jul 2014 05:14:16 -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 v102si37537732qgv.4.2014.07.29.05.14.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 05:14:16 -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 1XC6IJ-0002Ut-Fr; Tue, 29 Jul 2014 12:14:15 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XC6IA-0002Tm-Em for lng-odp@lists.linaro.org; Tue, 29 Jul 2014 12:14:06 +0000 Received: by mail-lb0-f181.google.com with SMTP id 10so6674373lbg.26 for ; Tue, 29 Jul 2014 05:14:00 -0700 (PDT) X-Received: by 10.112.160.105 with SMTP id xj9mr1987160lbb.2.1406636040586; Tue, 29 Jul 2014 05:14:00 -0700 (PDT) Received: from localhost (c-2ec28468-74736162.cust.telenor.se. [46.194.132.104]) by mx.google.com with ESMTPSA id aa2sm35504914lbc.29.2014.07.29.05.13.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 05:13:59 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Jul 2014 14:13:44 +0200 Message-Id: <1406636024-5348-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406636024-5348-1-git-send-email-anders.roxell@linaro.org> References: <1406636024-5348-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv7 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.172 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 | 10 +++++++++- platform/linux-dpdk/README | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index b80bf14..4aa568f 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -8,7 +8,15 @@ 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 +endif AM_CFLAGS += $(PLAT_CFLAGS) AM_CFLAGS += -I$(srcdir)/include diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 5325e77..14ad4e8 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -24,9 +24,9 @@ $ 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 $ make # Commands to test