linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
@ 2016-09-07 14:28 Jorge Ramirez-Ortiz
  2016-09-07 15:06 ` Daniel Thompson
  0 siblings, 1 reply; 3+ messages in thread
From: Jorge Ramirez-Ortiz @ 2016-09-07 14:28 UTC (permalink / raw)
  To: jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A,
	broonie-DgEjT+Ai2ygdnm+yROfE0A, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 tools/spi/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/spi/Makefile b/tools/spi/Makefile
index cd0db62..d1845b0 100644
--- a/tools/spi/Makefile
+++ b/tools/spi/Makefile
@@ -1,4 +1,8 @@
+CC = $(CROSS_COMPILE)gcc
+
 all: spidev_test spidev_fdx
 
+%: %.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
 clean:
 	$(RM) spidev_test spidev_fdx
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
  2016-09-07 14:28 [PATCH] tools: spi: enable CROSS_COMPILE in Makefile Jorge Ramirez-Ortiz
@ 2016-09-07 15:06 ` Daniel Thompson
  2016-09-07 15:24   ` Jorge Ramirez
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Thompson @ 2016-09-07 15:06 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz, broonie, linux-spi, linux-kernel

On 07/09/16 15:28, Jorge Ramirez-Ortiz wrote:
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
> ---
>  tools/spi/Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/tools/spi/Makefile b/tools/spi/Makefile
> index cd0db62..d1845b0 100644
> --- a/tools/spi/Makefile
> +++ b/tools/spi/Makefile
> @@ -1,4 +1,8 @@
> +CC = $(CROSS_COMPILE)gcc
> +
>  all: spidev_test spidev_fdx
>
> +%: %.c
> +	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<

What is this extra rule for?

The built in rules should already honour both these variables (and more 
besides).


Daniel.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
  2016-09-07 15:06 ` Daniel Thompson
@ 2016-09-07 15:24   ` Jorge Ramirez
  0 siblings, 0 replies; 3+ messages in thread
From: Jorge Ramirez @ 2016-09-07 15:24 UTC (permalink / raw)
  To: Daniel Thompson, broonie, linux-spi, linux-kernel

On 09/07/2016 05:06 PM, Daniel Thompson wrote:
> On 07/09/16 15:28, Jorge Ramirez-Ortiz wrote:
>> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
>> ---
>>  tools/spi/Makefile | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/tools/spi/Makefile b/tools/spi/Makefile
>> index cd0db62..d1845b0 100644
>> --- a/tools/spi/Makefile
>> +++ b/tools/spi/Makefile
>> @@ -1,4 +1,8 @@
>> +CC = $(CROSS_COMPILE)gcc
>> +
>>  all: spidev_test spidev_fdx
>>
>> +%: %.c
>> +    $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
>
> What is this extra rule for?

yes you are right. this one is not required. only setting CC. sending v2

>
> The built in rules should already honour both these variables (and 
> more besides).
>
>
> Daniel.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-07 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 14:28 [PATCH] tools: spi: enable CROSS_COMPILE in Makefile Jorge Ramirez-Ortiz
2016-09-07 15:06 ` Daniel Thompson
2016-09-07 15:24   ` Jorge Ramirez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).