Re: [PATCH] tools: fix cross-compile var export

2018-01-08 Thread Dan Carpenter
On Sun, Jan 07, 2018 at 10:51:21AM -0800, Martin Kelly wrote: > Urg, I accidentally sent to kernel-kbuild instead of linux-kbuild, changed > now. It appears that past changes to tools/scripts/Makefile.include have > been handled by linux-kbuild and often Masahiro Yamada. > > Perhaps the best seque

Re: [PATCH] tools: fix cross-compile var export

2018-01-07 Thread Martin Kelly
On 01/07/2018 11:04 AM, Paul Gortmaker wrote: [Re: [PATCH] tools: fix cross-compile var export] On 07/01/2018 (Sun 10:31) Martin Kelly wrote: [...] With the change, we add do CC = $(CROSS_COMPILE)gcc if and only if CC is not already set. I'm happy to add all these details to the c

Re: [PATCH] tools: fix cross-compile var export

2018-01-07 Thread Paul Gortmaker
[Re: [PATCH] tools: fix cross-compile var export] On 07/01/2018 (Sun 10:31) Martin Kelly wrote: [...] > With the change, we add do CC = $(CROSS_COMPILE)gcc if and only if CC is not > already set. I'm happy to add all these details to the commit description. That is probably a step i

Re: [PATCH] tools: fix cross-compile var export

2018-01-07 Thread Martin Kelly
On 01/07/2018 10:31 AM, Martin Kelly wrote: On 01/07/2018 08:11 AM, Paul Gortmaker wrote: [[PATCH] tools: fix cross-compile var export] On 06/01/2018 (Sat 12:16) Martin Kelly wrote: From: Martin Kelly Currently in a number of Makefiles, we clobber the CC, LD, and/or STRIP env vars when

Re: [PATCH] tools: fix cross-compile var export

2018-01-07 Thread Martin Kelly
On 01/07/2018 08:11 AM, Paul Gortmaker wrote: [[PATCH] tools: fix cross-compile var export] On 06/01/2018 (Sat 12:16) Martin Kelly wrote: From: Martin Kelly Currently in a number of Makefiles, we clobber the CC, LD, and/or STRIP env vars when cross-compiling, which breaks any additional

Re: [PATCH] tools: fix cross-compile var export

2018-01-07 Thread Paul Gortmaker
[[PATCH] tools: fix cross-compile var export] On 06/01/2018 (Sat 12:16) Martin Kelly wrote: > From: Martin Kelly > > Currently in a number of Makefiles, we clobber the CC, LD, and/or STRIP env > vars > when cross-compiling, which breaks any additional flags that might be se

[PATCH] tools: fix cross-compile var export

2018-01-06 Thread Martin Kelly
From: Martin Kelly Currently in a number of Makefiles, we clobber the CC, LD, and/or STRIP env vars when cross-compiling, which breaks any additional flags that might be set (such as sysroot). This easily shows up by using, for instance, a Yocto SDK. Fix this by more carefully overriding the fla