From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: pass CROSS_COMPILE when compiling kernel modules Date: Tue, 25 Feb 2014 22:55:36 +0100 Message-ID: <2031701.DtHZU1GqtL@x220> References: <1391791458-17601-1-git-send-email-aaro.koskinen@nsn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Aaro Koskinen Return-path: In-Reply-To: <1391791458-17601-1-git-send-email-aaro.koskinen-OYasijW0DpE@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, 07/02/2014 18:44, Aaro Koskinen : > Pass CROSS_COMPILE to the kernel build system when compiling kernel > modules. Although we export CC etc. the top level kernel Makefile will > override the environment. As a result it will end up using wrong tools > if cross-compilation is desired but CROSS_COMPILE is not set. > > Signed-off-by: Aaro Koskinen Could you explain why it's needed ? In a basic test, CC=$(CROSS)gcc in rte.vars.mk seems sufficient. Thanks -- Thomas