From patchwork Fri Jul 25 08:36:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34268 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DA72F20551 for ; Fri, 25 Jul 2014 08:37:15 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hu12sf11881091vcb.1 for ; Fri, 25 Jul 2014 01:37:15 -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=1yyZueprXWHPpVmul//VNtJK2PquHQRz4Go5j55njtE=; b=TaaOduYA7NTxBafEC2Irz9m5B2RgLPaTUdtAgoW/ONNSSzTy/ktq8xFbCXYhexs6bq /tfY4YPVrskUEnT0QYums6eg6glOsOnmIYKCtzEOi3x7VWVe2L2bMeF/CSFtiMeGr40O Mj3zk4l5PwAt0tN7cr6JMSR2yaX6n0yBSAgh4Gv/and7w2FkQewdZdoowqou5hTUCib7 H/Idh5NkLJ/bEAbAOJAkxu9EHPofjAuxcyKnLZ5leqlmM7Tc/YshiWM5C8T6YtPqG2T3 8pPnrap/6dlhdvlSwDJ2wJ0SVh++h51c6vgtdPWiNYTiznXshA7fSW8EWiufmyczD/0x r5yw== X-Gm-Message-State: ALoCoQk9S6bxY5zr0tb/FelSWh9Rzp625AGcABMSfByHLuK++ykkRl6IkZNlR/S/pXvSEDpn81kX X-Received: by 10.236.124.100 with SMTP id w64mr5835204yhh.57.1406277435674; Fri, 25 Jul 2014 01:37:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.117 with SMTP id i108ls1015295qgf.76.gmail; Fri, 25 Jul 2014 01:37:15 -0700 (PDT) X-Received: by 10.52.244.81 with SMTP id xe17mr16012190vdc.24.1406277435581; Fri, 25 Jul 2014 01:37:15 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id cn9si6981298vcb.71.2014.07.25.01.37.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hu12so6736524vcb.6 for ; Fri, 25 Jul 2014 01:37:15 -0700 (PDT) X-Received: by 10.52.186.199 with SMTP id fm7mr15815646vdc.15.1406277435485; Fri, 25 Jul 2014 01:37:15 -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 tc5csp20654vcb; Fri, 25 Jul 2014 01:37:15 -0700 (PDT) X-Received: by 10.224.47.8 with SMTP id l8mr25018114qaf.30.1406277435012; Fri, 25 Jul 2014 01:37:15 -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 o95si15143578qgd.72.2014.07.25.01.37.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:37:14 -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 1XAb06-0005U6-4D; Fri, 25 Jul 2014 08:37:14 +0000 Received: from mail-la0-f49.google.com ([209.85.215.49]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAazw-0005T9-HW for lng-odp@lists.linaro.org; Fri, 25 Jul 2014 08:37:04 +0000 Received: by mail-la0-f49.google.com with SMTP id hz20so2748105lab.8 for ; Fri, 25 Jul 2014 01:36:58 -0700 (PDT) X-Received: by 10.112.14.103 with SMTP id o7mr1043051lbc.83.1406277418680; Fri, 25 Jul 2014 01:36:58 -0700 (PDT) Received: from localhost (c-4f66bc92-74736162.cust.telenor.se. [79.102.188.146]) by mx.google.com with ESMTPSA id t3sm14885394lby.22.2014.07.25.01.36.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:36:57 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 25 Jul 2014 10:36:41 +0200 Message-Id: <1406277401-28679-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406277401-28679-1-git-send-email-anders.roxell@linaro.org> References: <1406277401-28679-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 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.175 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..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..f2ac6df 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -19,9 +19,10 @@ $ 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" +$ sudo ./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 ./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. $ sudo make clean $ sudo make