From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47])
 by dpdk.org (Postfix) with ESMTP id 7EAB1595A
 for <dev@dpdk.org>; Mon, 21 Jul 2014 16:30:45 +0200 (CEST)
Received: by mail-wg0-f47.google.com with SMTP id b13so6397249wgh.18
 for <dev@dpdk.org>; Mon, 21 Jul 2014 07:31:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:organization
 :user-agent:in-reply-to:references:mime-version
 :content-transfer-encoding:content-type;
 bh=r2KccGyLFnKFS15AwSnhEJd/8t1WlkabNRG6FSU+JYw=;
 b=N5iW6N8+oHh+tgM61IdeVdu8Fvr5hzeVc9nByloXJwUFdXfo9Qvtnd9o//IgB9xOLl
 COoGLgiAH/qNqBEj6jKeOuU2InzEm/DHu/IbzwREum6YrFpltHBm5Gc0cxULf3FtGrp4
 pbYcvcyUytkTRR53woqHQSru41F+lupxAyF0IaDNR992aPusaT5HN31D5zRnSFISug8r
 0+CO7fmRCX+kvK7d0nEHVebtmPQrbsiOB9wDKkFflPS/BZdR33p6Z6eJIPKxk8BUnX2f
 +yZ4QdcOLUNWMUtxZldrlK8oBDIvLw42ttPtBt7T6gntu3cteVT4NFdGj1tKGTKg5e41
 6/NQ==
X-Gm-Message-State: ALoCoQkDeqqe6SO3Nkxk72aFVBgpkDML1hxZzLL7PGgr3T2aryVNQgGIANUfkgv4oegSgZZL9qLD
X-Received: by 10.180.91.225 with SMTP id ch1mr5169109wib.34.1405953116512;
 Mon, 21 Jul 2014 07:31:56 -0700 (PDT)
Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136])
 by mx.google.com with ESMTPSA id cx5sm38067908wjb.8.2014.07.21.07.31.54
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 21 Jul 2014 07:31:55 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Matthew Hall <mhall@mhcomputing.net>
Date: Mon, 21 Jul 2014 16:31:47 +0200
Message-ID: <4209989.BbgAFp5BjD@xps13>
Organization: 6WIND
User-Agent: KMail/4.13.2 (Linux/3.15.5-2-ARCH; KDE/4.13.2; x86_64; ; )
In-Reply-To: <1405914461-19335-5-git-send-email-mhall@mhcomputing.net>
References: <1405914461-19335-1-git-send-email-mhall@mhcomputing.net>
 <1405914461-19335-5-git-send-email-mhall@mhcomputing.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 4/4] rte.extvars.mk: allow user to override
	RTE_SDK_BIN
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Jul 2014 14:30:45 -0000

Hi,

2014-07-20 20:47, Matthew Hall:
> Without this patch it is impossible to compile the examples if you have
> compiled the DPDK into the $(RTE_SDK)/build directory, or any other one
> besides $(RTE_SDK)/$(RTE_TARGET).

Please, could you explain why is it impossible in your case?

The standard usage is:
	make T=x86_64-native-linuxapp-gcc install
	make T=x86_64-native-linuxapp-gcc examples O=x86_64-native-linuxapp-gcc/examples

If you don't want to use install mode, you can build like this:
	make config T=x86_64-native-linuxapp-gcc
	make
	make -C examples RTE_SDK=$(pwd) RTE_TARGET=build O=$(readlink -m build/examples)

> --- a/mk/rte.extvars.mk
> +++ b/mk/rte.extvars.mk
> -RTE_SDK_BIN := $(RTE_SDK)/$(RTE_TARGET)
> +RTE_SDK_BIN ?= $(RTE_SDK)/$(RTE_TARGET)

I don't understand why this change could help.
You can even use this:
	make -C examples RTE_SDK=$(pwd) RTE_SDK_BIN=$(pwd)/build O=$(readlink -m build/examples)
without the patch because command line override variables.

Note that O= is optional.

-- 
Thomas