From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 4/4] rte.extvars.mk: allow user to override RTE_SDK_BIN Date: Mon, 21 Jul 2014 16:31:47 +0200 Message-ID: <4209989.BbgAFp5BjD@xps13> References: <1405914461-19335-1-git-send-email-mhall@mhcomputing.net> <1405914461-19335-5-git-send-email-mhall@mhcomputing.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Matthew Hall Return-path: In-Reply-To: <1405914461-19335-5-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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