mirror of https://lore.kernel.org/lkml/
 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, broonie, linux-spi, linux-kernel

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 $@ $<
 clean:
 	$(RM) spidev_test spidev_fdx
-- 
2.7.4

^ 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

all inboxes | Powered by JetHome®