From patchwork Tue Jul 29 11:58:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4363A202E4 for ; Tue, 29 Jul 2014 11:59:23 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf60450566oag.3 for ; Tue, 29 Jul 2014 04:59:22 -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=g6inS2KtJy+MB19Msww5QMNBGLJ2S7Ox0Kg2rXanVlIuX7QxXOG+7pvLEZGbluSvkz r4/1WZZ9cEpZZ5Vrg8zCfRVshuFnE9klMhxtM7X9BzFMqCfRDngB+syx/1lkhz6+QYKg 5dBdnJh3sZT4dDca/la/ERsV0T9feY7dOgT/8vav/yCQXOl1uPPm36QI9iOhH0NNUQXg hU5akobn2owahfo2DwVvbSL5qZxjuU3fEdfwTRgWFIFXTK0eZYzxDB+iNUKOCSOey/ZK rNU/DfEgqldO9ySnxAQXJw5eGkAYzB9BmpzZTG6LZMTfcts3QONHVeVhtcMr/P9HnEwv hcvQ== X-Gm-Message-State: ALoCoQmCbG9NB86UGSxaxYIlzrT7fInWP5YaGVyY20yV08co57HLLzPYqyoweC3rgCeZSseZbgB1 X-Received: by 10.50.66.236 with SMTP id i12mr13332503igt.5.1406635162831; Tue, 29 Jul 2014 04:59:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.231 with SMTP id z94ls87995qgz.54.gmail; Tue, 29 Jul 2014 04:59:22 -0700 (PDT) X-Received: by 10.220.3.79 with SMTP id 15mr484805vcm.63.1406635162689; Tue, 29 Jul 2014 04:59:22 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id el4si9293133vdb.90.2014.07.29.04.59.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 04:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so13022453vcb.21 for ; Tue, 29 Jul 2014 04:59:22 -0700 (PDT) X-Received: by 10.52.244.81 with SMTP id xe17mr960476vdc.24.1406635162613; Tue, 29 Jul 2014 04:59:22 -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 tc5csp238718vcb; Tue, 29 Jul 2014 04:59:21 -0700 (PDT) X-Received: by 10.224.89.10 with SMTP id c10mr2595054qam.51.1406635161166; Tue, 29 Jul 2014 04:59:21 -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 o5si2874975qck.6.2014.07.29.04.59.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 04:59:21 -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 1XC63q-00020e-U0; Tue, 29 Jul 2014 11:59:18 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XC63j-0001zi-JA for lng-odp@lists.linaro.org; Tue, 29 Jul 2014 11:59:11 +0000 Received: by mail-lb0-f179.google.com with SMTP id v6so6698858lbi.24 for ; Tue, 29 Jul 2014 04:59:05 -0700 (PDT) X-Received: by 10.152.37.194 with SMTP id a2mr1878345lak.29.1406635145700; Tue, 29 Jul 2014 04:59:05 -0700 (PDT) Received: from localhost (c-2ec28468-74736162.cust.telenor.se. [46.194.132.104]) by mx.google.com with ESMTPSA id w7sm14109994laj.9.2014.07.29.04.59.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 04:59:04 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Jul 2014 13:58:48 +0200 Message-Id: <1406635128-31933-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406635128-31933-1-git-send-email-anders.roxell@linaro.org> References: <1406635128-31933-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 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.176 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