lkml.org 
[lkml]   [2016]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools: spi: enable CROSS_COMPILE in Makefile
Date
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
\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.707 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site