From patchwork Thu Jul 24 14:56:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34228 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 3C2EF235A9 for ; Thu, 24 Jul 2014 14:57:38 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf18390135ieb.2 for ; Thu, 24 Jul 2014 07:57:37 -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=KD8Vd1Oh4gwHcLjQeuuKNK2aIxV+uoWBKoE/4+h9Stc=; b=Lnu94Lf3OuEnyPOIVQ7i/3sKtEM9p7/Bk3VJ/XxmytD46w/W7duk/C1kqQuZ2Cnfm4 0V9/xtR/WLo6aJtwZMNyq2trUfXOM1896MRY+Uh/XirtzjqWzT757SFJ3FUoNbeVv5j8 c5LqBRhPf1IzVPK/iYl5Z7VuTaxtisWG7yxo7gMWx9JiqwUzUAMCDPrjv96JiLD9dSpk l2FpPDWsGtVhqpOA9Yr+8iUlwpFjxD3k7w63etGrAiP+va8xQAyVqvadFj6gbr/yUMZ9 ShRD15/RfY9Eavd9HulCjQtd5l2cv35x8sX2l6sGhAaBfAxFlFFHv8CscswYSVc52XV5 o+cg== X-Gm-Message-State: ALoCoQkXfLw9g7WEZuWh9XNyW2O9/DZDHiwMsBoclF2KFibioVzOEX22qNHifsGOoC7LNMTI2xRJ X-Received: by 10.42.209.140 with SMTP id gg12mr4298308icb.26.1406213857491; Thu, 24 Jul 2014 07:57:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.171 with SMTP id 40ls792009qgx.9.gmail; Thu, 24 Jul 2014 07:57:37 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr13184383vcz.32.1406213857384; Thu, 24 Jul 2014 07:57:37 -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 ey8si5289433vdc.18.2014.07.24.07.57.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:37 -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 id10so5071696vcb.35 for ; Thu, 24 Jul 2014 07:57:37 -0700 (PDT) X-Received: by 10.52.37.81 with SMTP id w17mr4001224vdj.95.1406213857303; Thu, 24 Jul 2014 07:57:37 -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 tc5csp371807vcb; Thu, 24 Jul 2014 07:57:36 -0700 (PDT) X-Received: by 10.224.119.198 with SMTP id a6mr16232474qar.39.1406213855775; Thu, 24 Jul 2014 07:57:35 -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 34si11444102qgq.78.2014.07.24.07.57.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:35 -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 1XAKSa-0003sa-DS; Thu, 24 Jul 2014 14:57:32 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAKSQ-0003rp-BN for lng-odp@lists.linaro.org; Thu, 24 Jul 2014 14:57:22 +0000 Received: by mail-lb0-f182.google.com with SMTP id z11so2315864lbi.41 for ; Thu, 24 Jul 2014 07:57:16 -0700 (PDT) X-Received: by 10.112.73.164 with SMTP id m4mr9427412lbv.3.1406213836282; Thu, 24 Jul 2014 07:57:16 -0700 (PDT) Received: from localhost ([79.102.188.146]) by mx.google.com with ESMTPSA id t3sm10996675lby.22.2014.07.24.07.57.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:15 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 24 Jul 2014 16:56:56 +0200 Message-Id: <1406213816-22711-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406213816-22711-1-git-send-email-anders.roxell@linaro.org> References: <1406213816-22711-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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.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..7e0e2e0 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 EXTERNAL_SYSROOT_ +PLAT_CFLAGS += -include $(EXTERNAL_SYSROOT)/include/rte_config.h +PLAT_CFLAGS += -I$(EXTERNAL_SYSROOT)/include +PLAT_CFLAGS += -I$(EXTERNAL_SYSROOT)/include/arch +PLAT_CFLAGS += -I$(EXTERNAL_SYSROOT)/include/exec-env + +AM_LDFLAGS += -L$(EXTERNAL_SYSROOT)/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..0a1f141 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-external-sysroot= # 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-external-sysroot=/root/dpdk/build +# if dpdk is installed to the default path then you don't need to specify --with-external-sysroot= when you run configure. $ sudo make clean $ sudo make